From 2346730a806870ed5a8e7b8c43637cb527acbf17 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Aug 2020 12:10:04 -0700 Subject: [PATCH] feat(v1): added support OutputResult in ExportAssetsResponse (#290) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/424acc24-3537-4442-afce-676f19b79395/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 326582222 Source-Link: https://github.com/googleapis/googleapis/commit/3a54e988edcbdef1e47c6ac19d3074a87214f667 --- .../cloud/asset/v1/AssetServiceClient.java | 143 +-- .../cloud/asset/v1/AssetServiceGrpc.java | 108 ++- .../com/google/cloud/asset/v1/AssetProto.java | 26 +- .../cloud/asset/v1/AssetServiceProto.java | 252 +++--- .../google/cloud/asset/v1/ContentType.java | 4 +- .../cloud/asset/v1/CreateFeedRequest.java | 60 +- .../asset/v1/CreateFeedRequestOrBuilder.java | 15 +- .../cloud/asset/v1/ExportAssetsRequest.java | 231 +++-- .../v1/ExportAssetsRequestOrBuilder.java | 69 +- .../cloud/asset/v1/ExportAssetsResponse.java | 337 ++++++- .../v1/ExportAssetsResponseOrBuilder.java | 47 + .../java/com/google/cloud/asset/v1/Feed.java | 60 +- .../google/cloud/asset/v1/FeedOrBuilder.java | 15 +- .../cloud/asset/v1/GcsOutputResult.java | 748 ++++++++++++++++ .../asset/v1/GcsOutputResultOrBuilder.java | 80 ++ .../cloud/asset/v1/IamPolicySearchResult.java | 166 ++-- .../v1/IamPolicySearchResultOrBuilder.java | 34 +- .../google/cloud/asset/v1/OutputResult.java | 831 ++++++++++++++++++ .../cloud/asset/v1/OutputResultOrBuilder.java | 62 ++ .../cloud/asset/v1/ResourceSearchResult.java | 454 ++++++---- .../v1/ResourceSearchResultOrBuilder.java | 141 +-- .../asset/v1/SearchAllIamPoliciesRequest.java | 477 +++++----- .../SearchAllIamPoliciesRequestOrBuilder.java | 135 +-- .../asset/v1/SearchAllResourcesRequest.java | 620 +++++++------ .../SearchAllResourcesRequestOrBuilder.java | 177 ++-- .../cloud/asset/v1/UpdateFeedRequest.java | 48 +- .../asset/v1/UpdateFeedRequestOrBuilder.java | 12 +- .../google/cloud/asset/v1/asset_service.proto | 284 +++--- .../proto/google/cloud/asset/v1/assets.proto | 65 +- synth.metadata | 28 +- 30 files changed, 4195 insertions(+), 1534 deletions(-) create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index a04cd9b9e..eac122de1 100644 --- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -727,9 +727,9 @@ public final UnaryCallable deleteFeedCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the resources within the given accessible scope (e.g., a project, a folder or an - * organization). Callers should have cloud.assets.SearchAllResources permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all Cloud resources within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllResources` permission + * on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -744,32 +744,37 @@ public final UnaryCallable deleteFeedCallable() { * } * * - * @param scope Required. A scope can be a project, a folder or an organization. The search is - * limited to the resources within the `scope`. + * @param scope Required. A scope can be a project, a folder, or an organization. The search is + * limited to the resources within the `scope`. The caller must be granted the + * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions) + * permission on the desired scope. *

The allowed values are: - *

* projects/{PROJECT_ID} * projects/{PROJECT_NUMBER} * - * folders/{FOLDER_NUMBER} * organizations/{ORGANIZATION_NUMBER} - * @param query Optional. The query statement. An empty query can be specified to search all the - * resources of certain `asset_types` within the given `scope`. + *

* projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} + * (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * + * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @param query Optional. The query statement. See [how to construct a + * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) + * for more information. If not specified or empty, it will search all the resources within + * the specified `scope`. Note that the query string is compared against each Cloud IAM policy + * binding, including its members, roles, and Cloud IAM conditions. The returned Cloud IAM + * policies will only contain the bindings that match your query. To learn more about the IAM + * policy structure, see [IAM policy + * doc](https://cloud.google.com/iam/docs/policies#structure). *

Examples: - *

* `name : "Important"` to find Cloud resources whose name contains "Important" as a - * word. * `displayName : "Impor*"` to find Cloud resources whose display name - * contains "Impor" as a word prefix. * `description : "*por*"` to find Cloud - * resources whose description contains "por" as a substring. * `location : - * "us-west*"` to find Cloud resources whose location is prefixed with "us-west". * - * `labels : "prod"` to find Cloud resources whose labels contain "prod" as a key or value. - * * `labels.env : "prod"` to find Cloud resources which have a label "env" and its value - * is "prod". * `labels.env : *` to find Cloud resources which have a label "env". - * * `"Important"` to find Cloud resources which contain "Important" as a word in any of - * the searchable fields. * `"Impor*"` to find Cloud resources which contain "Impor" - * as a word prefix in any of the searchable fields. * `"*por*"` to find Cloud - * resources which contain "por" as a substring in any of the searchable fields. * - * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud resources which - * contain "Important" as a word in any of the searchable fields and are also located in the - * "us-west1" region or the "global" location. - *

See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more details. + *

* `name:Important` to find Cloud resources whose name contains "Important" as a + * word. * `displayName:Impor*` to find Cloud resources whose display name contains + * "Impor" as a prefix. * `description:*por*` to find Cloud resources whose + * description contains "por" as a substring. * `location:us-west*` to find Cloud + * resources whose location is prefixed with "us-west". * `labels:prod` to find Cloud + * resources whose labels contain "prod" as a key or value. * `labels.env:prod` to find + * Cloud resources that have a label "env" and its value is "prod". * `labels.env:*` + * to find Cloud resources that have a label "env". * `Important` to find Cloud resources + * that contain "Important" as a word in any of the searchable fields. * `Impor*` to + * find Cloud resources that contain "Impor" as a prefix in any of the searchable fields. + * * `*por*` to find Cloud resources that contain "por" as a substring in any of + * the searchable fields. * `Important location:(us-west1 OR global)` to find Cloud + * resources that contain "Important" as a word in any of the searchable fields and are also + * located in the "us-west1" region or the "global" location. * @param assetTypes Optional. A list of asset types that this request searches for. If empty, it * will search all the [searchable asset * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types). @@ -788,9 +793,9 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the resources within the given accessible scope (e.g., a project, a folder or an - * organization). Callers should have cloud.assets.SearchAllResources permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all Cloud resources within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllResources` permission + * on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -816,9 +821,9 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the resources within the given accessible scope (e.g., a project, a folder or an - * organization). Callers should have cloud.assets.SearchAllResources permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all Cloud resources within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllResources` permission + * on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -843,9 +848,9 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the resources within the given accessible scope (e.g., a project, a folder or an - * organization). Callers should have cloud.assets.SearchAllResources permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all Cloud resources within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllResources` permission + * on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -877,9 +882,9 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the IAM policies within the given accessible scope (e.g., a project, a folder or - * an organization). Callers should have cloud.assets.SearchAllIamPolicies permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all IAM policies within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * permission on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -893,26 +898,32 @@ public final SearchAllResourcesPagedResponse searchAllResources( * } * * - * @param scope Required. A scope can be a project, a folder or an organization. The search is - * limited to the IAM policies within the `scope`. + * @param scope Required. A scope can be a project, a folder, or an organization. The search is + * limited to the IAM policies within the `scope`. The caller must be granted the + * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions) + * permission on the desired scope. *

The allowed values are: - *

* projects/{PROJECT_ID} * projects/{PROJECT_NUMBER} * - * folders/{FOLDER_NUMBER} * organizations/{ORGANIZATION_NUMBER} - * @param query Optional. The query statement. An empty query can be specified to search all the - * IAM policies within the given `scope`. - *

Examples: - *

* `policy : "amy{@literal @}gmail.com"` to find Cloud IAM policy bindings that - * specify user "amy{@literal @}gmail.com". * `policy : "roles/compute.admin"` to find - * Cloud IAM policy bindings that specify the Compute Admin role. * - * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM policy bindings that - * specify a role containing "storage.buckets.update" permission. * `resource : - * "organizations/123"` to find Cloud IAM policy bindings that are set on "organizations/123". - * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")` to find - * Cloud IAM policy bindings that are set on "organizations/123" or "folders/1234", and also - * specify user "amy". - *

See [how to construct a + *

* projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} + * (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * + * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @param query Optional. The query statement. See [how to construct a * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more details. + * for more information. If not specified or empty, it will search all the IAM policies within + * the specified `scope`. + *

Examples: + *

* `policy:amy{@literal @}gmail.com` to find IAM policy bindings that specify user + * "amy{@literal @}gmail.com". * `policy:roles/compute.admin` to find IAM policy bindings + * that specify the Compute Admin role. * `policy.role.permissions:storage.buckets.update` + * to find IAM policy bindings that specify a role containing "storage.buckets.update" + * permission. Note that if callers don't have `iam.roles.get` access to a role's included + * permissions, policy bindings that specify this role will be dropped from the search + * results. * `resource:organizations/123456` to find IAM policy bindings that are set on + * "organizations/123456". * `Important` to find IAM policy bindings that contain + * "Important" as a word in any of the searchable fields (except for the included + * permissions). * `*por*` to find IAM policy bindings that contain "por" as a + * substring in any of the searchable fields (except for the included permissions). * + * `resource:(instance1 OR instance2) policy:amy` to find IAM policy bindings that are set on + * resources "instance1" or "instance2" and also specify user "amy". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope, String query) { @@ -923,9 +934,9 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the IAM policies within the given accessible scope (e.g., a project, a folder or - * an organization). Callers should have cloud.assets.SearchAllIamPolicies permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all IAM policies within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * permission on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -951,9 +962,9 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the IAM policies within the given accessible scope (e.g., a project, a folder or - * an organization). Callers should have cloud.assets.SearchAllIamPolicies permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all IAM policies within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * permission on the desired scope, otherwise the request will be rejected. * *

Sample code: * @@ -978,9 +989,9 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searches all the IAM policies within the given accessible scope (e.g., a project, a folder or - * an organization). Callers should have cloud.assets.SearchAllIamPolicies permission upon the - * requested scope, otherwise the request will be rejected. + * Searches all IAM policies within the specified scope, such as a project, folder, or + * organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * permission on the desired scope, otherwise the request will be rejected. * *

Sample code: * diff --git a/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java index 0f2a858e7..f08ad07b2 100644 --- a/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ b/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -483,14 +483,13 @@ public abstract static class AssetServiceImplBase implements io.grpc.BindableSer * Exports assets with time and resource types to a given Cloud Storage * location/BigQuery table. For Cloud Storage location destinations, the * output format is newline-delimited JSON. Each line represents a - * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON - * format; for BigQuery table destinations, the output table stores the fields - * in asset proto as columns. This API implements the - * [google.longrunning.Operation][google.longrunning.Operation] API , which - * allows you to keep track of the export. We recommend intervals of at least - * 2 seconds with exponential retry to poll the export operation result. For - * regular-size resource parent, the export operation usually finishes within - * 5 minutes. + * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table + * destinations, the output table stores the fields in asset proto as columns. + * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API + * , which allows you to keep track of the export. We recommend intervals of + * at least 2 seconds with exponential retry to poll the export operation + * result. For regular-size resource parent, the export operation usually + * finishes within 5 minutes. * */ public void exportAssets( @@ -589,9 +588,9 @@ public void deleteFeed( * * *

-     * Searches all the resources within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllResources permission upon the requested scope,
+     * Searches all Cloud resources within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllResources` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -606,9 +605,9 @@ public void searchAllResources( * * *
-     * Searches all the IAM policies within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllIamPolicies permission upon the requested scope,
+     * Searches all IAM policies within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -708,14 +707,13 @@ protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * Exports assets with time and resource types to a given Cloud Storage * location/BigQuery table. For Cloud Storage location destinations, the * output format is newline-delimited JSON. Each line represents a - * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON - * format; for BigQuery table destinations, the output table stores the fields - * in asset proto as columns. This API implements the - * [google.longrunning.Operation][google.longrunning.Operation] API , which - * allows you to keep track of the export. We recommend intervals of at least - * 2 seconds with exponential retry to poll the export operation result. For - * regular-size resource parent, the export operation usually finishes within - * 5 minutes. + * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table + * destinations, the output table stores the fields in asset proto as columns. + * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API + * , which allows you to keep track of the export. We recommend intervals of + * at least 2 seconds with exponential retry to poll the export operation + * result. For regular-size resource parent, the export operation usually + * finishes within 5 minutes. * */ public void exportAssets( @@ -825,9 +823,9 @@ public void deleteFeed( * * *
-     * Searches all the resources within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllResources permission upon the requested scope,
+     * Searches all Cloud resources within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllResources` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -845,9 +843,9 @@ public void searchAllResources( * * *
-     * Searches all the IAM policies within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllIamPolicies permission upon the requested scope,
+     * Searches all IAM policies within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -888,14 +886,13 @@ protected AssetServiceBlockingStub build( * Exports assets with time and resource types to a given Cloud Storage * location/BigQuery table. For Cloud Storage location destinations, the * output format is newline-delimited JSON. Each line represents a - * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON - * format; for BigQuery table destinations, the output table stores the fields - * in asset proto as columns. This API implements the - * [google.longrunning.Operation][google.longrunning.Operation] API , which - * allows you to keep track of the export. We recommend intervals of at least - * 2 seconds with exponential retry to poll the export operation result. For - * regular-size resource parent, the export operation usually finishes within - * 5 minutes. + * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table + * destinations, the output table stores the fields in asset proto as columns. + * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API + * , which allows you to keep track of the export. We recommend intervals of + * at least 2 seconds with exponential retry to poll the export operation + * result. For regular-size resource parent, the export operation usually + * finishes within 5 minutes. * */ public com.google.longrunning.Operation exportAssets( @@ -987,9 +984,9 @@ public com.google.protobuf.Empty deleteFeed( * * *
-     * Searches all the resources within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllResources permission upon the requested scope,
+     * Searches all Cloud resources within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllResources` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -1003,9 +1000,9 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources( * * *
-     * Searches all the IAM policies within the given accessible scope (e.g., a
-     * project, a folder or an organization). Callers should have
-     * cloud.assets.SearchAllIamPolicies permission upon the requested scope,
+     * Searches all IAM policies within the specified scope, such as a project,
+     * folder, or organization. The caller must be granted the
+     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
      * otherwise the request will be rejected.
      * 
*/ @@ -1042,14 +1039,13 @@ protected AssetServiceFutureStub build( * Exports assets with time and resource types to a given Cloud Storage * location/BigQuery table. For Cloud Storage location destinations, the * output format is newline-delimited JSON. Each line represents a - * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON - * format; for BigQuery table destinations, the output table stores the fields - * in asset proto as columns. This API implements the - * [google.longrunning.Operation][google.longrunning.Operation] API , which - * allows you to keep track of the export. We recommend intervals of at least - * 2 seconds with exponential retry to poll the export operation result. For - * regular-size resource parent, the export operation usually finishes within - * 5 minutes. + * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table + * destinations, the output table stores the fields in asset proto as columns. + * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API + * , which allows you to keep track of the export. We recommend intervals of + * at least 2 seconds with exponential retry to poll the export operation + * result. For regular-size resource parent, the export operation usually + * finishes within 5 minutes. * */ public com.google.common.util.concurrent.ListenableFuture @@ -1147,9 +1143,9 @@ public com.google.common.util.concurrent.ListenableFuture - * Searches all the resources within the given accessible scope (e.g., a - * project, a folder or an organization). Callers should have - * cloud.assets.SearchAllResources permission upon the requested scope, + * Searches all Cloud resources within the specified scope, such as a project, + * folder, or organization. The caller must be granted the + * `cloudasset.assets.searchAllResources` permission on the desired scope, * otherwise the request will be rejected. * */ @@ -1164,9 +1160,9 @@ public com.google.common.util.concurrent.ListenableFuture - * Searches all the IAM policies within the given accessible scope (e.g., a - * project, a folder or an organization). Callers should have - * cloud.assets.SearchAllIamPolicies permission upon the requested scope, + * Searches all IAM policies within the specified scope, such as a project, + * folder, or organization. The caller must be granted the + * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope, * otherwise the request will be rejected. * */ diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java index 0f828b660..f7d5abcce 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -77,17 +77,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\"google/cloud/asset/v1/assets.proto\022\025go" - + "ogle.cloud.asset.v1\032\034google/api/annotati" - + "ons.proto\032\031google/api/resource.proto\032)go" - + "ogle/cloud/orgpolicy/v1/orgpolicy.proto\032" - + "\032google/iam/v1/policy.proto\032:google/iden" - + "tity/accesscontextmanager/v1/access_leve" - + "l.proto\032;google/identity/accesscontextma" - + "nager/v1/access_policy.proto\032?google/ide" - + "ntity/accesscontextmanager/v1/service_pe" - + "rimeter.proto\032\031google/protobuf/any.proto" - + "\032\034google/protobuf/struct.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\025google/rpc/code" + + "ogle.cloud.asset.v1\032\031google/api/resource" + + ".proto\032)google/cloud/orgpolicy/v1/orgpol" + + "icy.proto\032\032google/iam/v1/policy.proto\032:g" + + "oogle/identity/accesscontextmanager/v1/a" + + "ccess_level.proto\032;google/identity/acces" + + "scontextmanager/v1/access_policy.proto\032?" + + "google/identity/accesscontextmanager/v1/" + + "service_perimeter.proto\032\031google/protobuf" + + "/any.proto\032\034google/protobuf/struct.proto" + + "\032\037google/protobuf/timestamp.proto\032\025googl" + + "e/rpc/code.proto\032\034google/api/annotations" + ".proto\"\365\002\n\rTemporalAsset\0221\n\006window\030\001 \001(\013" + "2!.google.cloud.asset.v1.TimeWindow\022\017\n\007d" + "eleted\030\002 \001(\010\022+\n\005asset\030\003 \001(\0132\034.google.clo" @@ -149,7 +149,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), com.google.iam.v1.PolicyProto.getDescriptor(), @@ -160,6 +159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.CodeProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = getDescriptor().getMessageTypes().get(0); @@ -278,7 +278,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); @@ -289,6 +288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.CodeProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java index e5c7f574c..1a8e4c8d3 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -71,6 +71,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_asset_v1_OutputConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_OutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_asset_v1_GcsDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -132,111 +140,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "obuf.Timestamp\022\023\n\013asset_types\030\003 \003(\t\0228\n\014c" + "ontent_type\030\004 \001(\0162\".google.cloud.asset.v" + "1.ContentType\022?\n\routput_config\030\005 \001(\0132#.g" - + "oogle.cloud.asset.v1.OutputConfigB\003\340A\002\"\201" + + "oogle.cloud.asset.v1.OutputConfigB\003\340A\002\"\275" + "\001\n\024ExportAssetsResponse\022-\n\tread_time\030\001 \001" + "(\0132\032.google.protobuf.Timestamp\022:\n\routput" + "_config\030\002 \001(\0132#.google.cloud.asset.v1.Ou" - + "tputConfig\"\355\001\n\034BatchGetAssetsHistoryRequ" - + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset." - + "googleapis.com/Asset\022\023\n\013asset_names\030\002 \003(" - + "\t\022=\n\014content_type\030\003 \001(\0162\".google.cloud.a" - + "sset.v1.ContentTypeB\003\340A\001\022@\n\020read_time_wi" - + "ndow\030\004 \001(\0132!.google.cloud.asset.v1.TimeW" - + "indowB\003\340A\001\"U\n\035BatchGetAssetsHistoryRespo" - + "nse\0224\n\006assets\030\001 \003(\0132$.google.cloud.asset" - + ".v1.TemporalAsset\"n\n\021CreateFeedRequest\022\023" - + "\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A" - + "\002\022.\n\004feed\030\003 \001(\0132\033.google.cloud.asset.v1." - + "FeedB\003\340A\002\"F\n\016GetFeedRequest\0224\n\004name\030\001 \001(" - + "\tB&\340A\002\372A \n\036cloudasset.googleapis.com/Fee" - + "d\"\'\n\020ListFeedsRequest\022\023\n\006parent\030\001 \001(\tB\003\340" - + "A\002\"?\n\021ListFeedsResponse\022*\n\005feeds\030\001 \003(\0132\033" - + ".google.cloud.asset.v1.Feed\"y\n\021UpdateFee" - + "dRequest\022.\n\004feed\030\001 \001(\0132\033.google.cloud.as" - + "set.v1.FeedB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\"I\n\021Delete" - + "FeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloud" - + "asset.googleapis.com/Feed\"\253\001\n\014OutputConf" - + "ig\022@\n\017gcs_destination\030\001 \001(\0132%.google.clo" - + "ud.asset.v1.GcsDestinationH\000\022J\n\024bigquery" - + "_destination\030\002 \001(\0132*.google.cloud.asset." - + "v1.BigQueryDestinationH\000B\r\n\013destination\"" - + "C\n\016GcsDestination\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_" - + "prefix\030\002 \001(\tH\000B\014\n\nobject_uri\"N\n\023BigQuery" - + "Destination\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005tab" - + "le\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"\"\n\021PubsubDe" - + "stination\022\r\n\005topic\030\001 \001(\t\"i\n\020FeedOutputCo" - + "nfig\022F\n\022pubsub_destination\030\001 \001(\0132(.googl" - + "e.cloud.asset.v1.PubsubDestinationH\000B\r\n\013" - + "destination\"\201\003\n\004Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" - + "\023\n\013asset_names\030\002 \003(\t\022\023\n\013asset_types\030\003 \003(" - + "\t\0228\n\014content_type\030\004 \001(\0162\".google.cloud.a" - + "sset.v1.ContentType\022H\n\022feed_output_confi" - + "g\030\005 \001(\0132\'.google.cloud.asset.v1.FeedOutp" - + "utConfigB\003\340A\002\022$\n\tcondition\030\006 \001(\0132\021.googl" - + "e.type.Expr:\221\001\352A\215\001\n\036cloudasset.googleapi" - + "s.com/Feed\022\037projects/{project}/feeds/{fe" - + "ed}\022\035folders/{folder}/feeds/{feed}\022)orga" - + "nizations/{organization}/feeds/{feed} \001\"" - + "\245\001\n\031SearchAllResourcesRequest\022\022\n\005scope\030\001" - + " \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\030\n\013asset_t" - + "ypes\030\003 \003(\tB\003\340A\001\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022" - + "\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025\n\010order_by\030\006 \001" - + "(\tB\003\340A\001\"s\n\032SearchAllResourcesResponse\022<\n" - + "\007results\030\001 \003(\0132+.google.cloud.asset.v1.R" - + "esourceSearchResult\022\027\n\017next_page_token\030\002" - + " \001(\t\"v\n\033SearchAllIamPoliciesRequest\022\022\n\005s" - + "cope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tp" - + "age_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB" - + "\003\340A\001\"v\n\034SearchAllIamPoliciesResponse\022=\n\007" - + "results\030\001 \003(\0132,.google.cloud.asset.v1.Ia" - + "mPolicySearchResult\022\027\n\017next_page_token\030\002" - + " \001(\t*l\n\013ContentType\022\034\n\030CONTENT_TYPE_UNSP" - + "ECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\002\022" - + "\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\360\013\n\014A" - + "ssetService\022\336\001\n\014ExportAssets\022*.google.cl" - + "oud.asset.v1.ExportAssetsRequest\032\035.googl" - + "e.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1/{p" - + "arent=*/*}:exportAssets:\001*\312AW\n*google.cl" - + "oud.asset.v1.ExportAssetsResponse\022)googl" - + "e.cloud.asset.v1.ExportAssetsRequest\022\262\001\n" - + "\025BatchGetAssetsHistory\0223.google.cloud.as" - + "set.v1.BatchGetAssetsHistoryRequest\0324.go" - + "ogle.cloud.asset.v1.BatchGetAssetsHistor" - + "yResponse\".\202\323\344\223\002(\022&/v1/{parent=*/*}:batc" - + "hGetAssetsHistory\022\177\n\nCreateFeed\022(.google" - + ".cloud.asset.v1.CreateFeedRequest\032\033.goog" - + "le.cloud.asset.v1.Feed\"*\202\323\344\223\002\033\"\026/v1/{par" - + "ent=*/*}/feeds:\001*\332A\006parent\022t\n\007GetFeed\022%." - + "google.cloud.asset.v1.GetFeedRequest\032\033.g" - + "oogle.cloud.asset.v1.Feed\"%\202\323\344\223\002\030\022\026/v1/{" - + "name=*/*/feeds/*}\332A\004name\022\207\001\n\tListFeeds\022\'" - + ".google.cloud.asset.v1.ListFeedsRequest\032" - + "(.google.cloud.asset.v1.ListFeedsRespons" - + "e\"\'\202\323\344\223\002\030\022\026/v1/{parent=*/*}/feeds\332A\006pare" - + "nt\022\202\001\n\nUpdateFeed\022(.google.cloud.asset.v" - + "1.UpdateFeedRequest\032\033.google.cloud.asset" - + ".v1.Feed\"-\202\323\344\223\002 2\033/v1/{feed.name=*/*/fee" - + "ds/*}:\001*\332A\004feed\022u\n\nDeleteFeed\022(.google.c" - + "loud.asset.v1.DeleteFeedRequest\032\026.google" - + ".protobuf.Empty\"%\202\323\344\223\002\030*\026/v1/{name=*/*/f" - + "eeds/*}\332A\004name\022\277\001\n\022SearchAllResources\0220." - + "google.cloud.asset.v1.SearchAllResources" - + "Request\0321.google.cloud.asset.v1.SearchAl" - + "lResourcesResponse\"D\202\323\344\223\002$\022\"/v1/{scope=*" - + "/*}:searchAllResources\332A\027scope,query,ass" - + "et_types\022\273\001\n\024SearchAllIamPolicies\0222.goog" - + "le.cloud.asset.v1.SearchAllIamPoliciesRe" - + "quest\0323.google.cloud.asset.v1.SearchAllI" - + "amPoliciesResponse\":\202\323\344\223\002&\022$/v1/{scope=*" - + "/*}:searchAllIamPolicies\332A\013scope,query\032M" - + "\312A\031cloudasset.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\234\001" - + "\n\031com.google.cloud.asset.v1B\021AssetServic" - + "eProtoP\001Z:google.golang.org/genproto/goo" - + "gleapis/cloud/asset/v1;asset\252\002\025Google.Cl" - + "oud.Asset.V1\312\002\025Google\\Cloud\\Asset\\V1b\006pr" - + "oto3" + + "tputConfig\022:\n\routput_result\030\003 \001(\0132#.goog" + + "le.cloud.asset.v1.OutputResult\"\355\001\n\034Batch" + + "GetAssetsHistoryRequest\0227\n\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\022\037cloudasset.googleapis.com/Asset" + + "\022\023\n\013asset_names\030\002 \003(\t\022=\n\014content_type\030\003 " + + "\001(\0162\".google.cloud.asset.v1.ContentTypeB" + + "\003\340A\001\022@\n\020read_time_window\030\004 \001(\0132!.google." + + "cloud.asset.v1.TimeWindowB\003\340A\001\"U\n\035BatchG" + + "etAssetsHistoryResponse\0224\n\006assets\030\001 \003(\0132" + + "$.google.cloud.asset.v1.TemporalAsset\"n\n" + + "\021CreateFeedRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022" + + "\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030\003 \001(\0132\033.go" + + "ogle.cloud.asset.v1.FeedB\003\340A\002\"F\n\016GetFeed" + + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasse" + + "t.googleapis.com/Feed\"\'\n\020ListFeedsReques" + + "t\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021ListFeedsRespo" + + "nse\022*\n\005feeds\030\001 \003(\0132\033.google.cloud.asset." + + "v1.Feed\"y\n\021UpdateFeedRequest\022.\n\004feed\030\001 \001" + + "(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n\004name\030" + + "\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleapis.com" + + "/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_destinatio" + + "n\030\001 \001(\0132%.google.cloud.asset.v1.GcsDesti" + + "nationH\000\022J\n\024bigquery_destination\030\002 \001(\0132*" + + ".google.cloud.asset.v1.BigQueryDestinati" + + "onH\000B\r\n\013destination\"V\n\014OutputResult\022<\n\ng" + + "cs_result\030\001 \001(\0132&.google.cloud.asset.v1." + + "GcsOutputResultH\000B\010\n\006result\"\037\n\017GcsOutput" + + "Result\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDestination\022\r" + + "\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B\014\n\no" + + "bject_uri\"N\n\023BigQueryDestination\022\024\n\007data" + + "set\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\r\n\005fo" + + "rce\030\003 \001(\010\"\"\n\021PubsubDestination\022\r\n\005topic\030" + + "\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub_dest" + + "ination\030\001 \001(\0132(.google.cloud.asset.v1.Pu" + + "bsubDestinationH\000B\r\n\013destination\"\201\003\n\004Fee" + + "d\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(" + + "\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004" + + " \001(\0162\".google.cloud.asset.v1.ContentType" + + "\022H\n\022feed_output_config\030\005 \001(\0132\'.google.cl" + + "oud.asset.v1.FeedOutputConfigB\003\340A\002\022$\n\tco" + + "ndition\030\006 \001(\0132\021.google.type.Expr:\221\001\352A\215\001\n" + + "\036cloudasset.googleapis.com/Feed\022\037project" + + "s/{project}/feeds/{feed}\022\035folders/{folde" + + "r}/feeds/{feed}\022)organizations/{organiza" + + "tion}/feeds/{feed} \001\"\245\001\n\031SearchAllResour" + + "cesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030" + + "\002 \001(\tB\003\340A\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\t" + + "page_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\t" + + "B\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"s\n\032SearchAl" + + "lResourcesResponse\022<\n\007results\030\001 \003(\0132+.go" + + "ogle.cloud.asset.v1.ResourceSearchResult" + + "\022\027\n\017next_page_token\030\002 \001(\t\"v\n\033SearchAllIa" + + "mPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005" + + "query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"v\n\034SearchAllIa" + + "mPoliciesResponse\022=\n\007results\030\001 \003(\0132,.goo" + + "gle.cloud.asset.v1.IamPolicySearchResult" + + "\022\027\n\017next_page_token\030\002 \001(\t*l\n\013ContentType" + + "\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOUR" + + "CE\020\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\r" + + "ACCESS_POLICY\020\0052\360\013\n\014AssetService\022\336\001\n\014Exp" + + "ortAssets\022*.google.cloud.asset.v1.Export" + + "AssetsRequest\032\035.google.longrunning.Opera" + + "tion\"\202\001\202\323\344\223\002\"\"\035/v1/{parent=*/*}:exportAs" + + "sets:\001*\312AW\n*google.cloud.asset.v1.Export" + + "AssetsResponse\022)google.cloud.asset.v1.Ex" + + "portAssetsRequest\022\262\001\n\025BatchGetAssetsHist" + + "ory\0223.google.cloud.asset.v1.BatchGetAsse" + + "tsHistoryRequest\0324.google.cloud.asset.v1" + + ".BatchGetAssetsHistoryResponse\".\202\323\344\223\002(\022&" + + "/v1/{parent=*/*}:batchGetAssetsHistory\022\177" + + "\n\nCreateFeed\022(.google.cloud.asset.v1.Cre" + + "ateFeedRequest\032\033.google.cloud.asset.v1.F" + + "eed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:\001*\332A" + + "\006parent\022t\n\007GetFeed\022%.google.cloud.asset." + + "v1.GetFeedRequest\032\033.google.cloud.asset.v" + + "1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/*}\332A" + + "\004name\022\207\001\n\tListFeeds\022\'.google.cloud.asset" + + ".v1.ListFeedsRequest\032(.google.cloud.asse" + + "t.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/{par" + + "ent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFeed\022(" + + ".google.cloud.asset.v1.UpdateFeedRequest" + + "\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002 2\033/" + + "v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed\022u\n\n" + + "DeleteFeed\022(.google.cloud.asset.v1.Delet" + + "eFeedRequest\032\026.google.protobuf.Empty\"%\202\323" + + "\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\022\277\001\n\022" + + "SearchAllResources\0220.google.cloud.asset." + + "v1.SearchAllResourcesRequest\0321.google.cl" + + "oud.asset.v1.SearchAllResourcesResponse\"" + + "D\202\323\344\223\002$\022\"/v1/{scope=*/*}:searchAllResour" + + "ces\332A\027scope,query,asset_types\022\273\001\n\024Search" + + "AllIamPolicies\0222.google.cloud.asset.v1.S" + + "earchAllIamPoliciesRequest\0323.google.clou" + + "d.asset.v1.SearchAllIamPoliciesResponse\"" + + ":\202\323\344\223\002&\022$/v1/{scope=*/*}:searchAllIamPol" + + "icies\332A\013scope,query\032M\312A\031cloudasset.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\234\001\n\031com.google.cloud." + + "asset.v1B\021AssetServiceProtoP\001Z:google.go" + + "lang.org/genproto/googleapis/cloud/asset" + + "/v1;asset\252\002\025Google.Cloud.Asset.V1\312\002\025Goog" + + "le\\Cloud\\Asset\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -268,7 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor, new java.lang.String[] { - "ReadTime", "OutputConfig", + "ReadTime", "OutputConfig", "OutputResult", }); internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -342,8 +354,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); - internal_static_google_cloud_asset_v1_GcsDestination_descriptor = + internal_static_google_cloud_asset_v1_OutputResult_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_OutputResult_descriptor, + new java.lang.String[] { + "GcsResult", "Result", + }); + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor, + new java.lang.String[] { + "Uris", + }); + internal_static_google_cloud_asset_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_GcsDestination_descriptor, @@ -351,7 +379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "UriPrefix", "ObjectUri", }); internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, @@ -359,7 +387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Dataset", "Table", "Force", }); internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, @@ -367,7 +395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, @@ -375,7 +403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PubsubDestination", "Destination", }); internal_static_google_cloud_asset_v1_Feed_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_Feed_descriptor, @@ -383,7 +411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", "Condition", }); internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor, @@ -391,7 +419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", }); internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor, @@ -399,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", "NextPageToken", }); internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor, @@ -407,7 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scope", "Query", "PageSize", "PageToken", }); internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor, diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java index 9d0dac531..3db66f718 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java @@ -72,7 +72,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The Cloud Access context mananger Policy set on an asset.
+   * The Cloud Access context manager Policy set on an asset.
    * 
* * ACCESS_POLICY = 5; @@ -125,7 +125,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The Cloud Access context mananger Policy set on an asset.
+   * The Cloud Access context manager Policy set on an asset.
    * 
* * ACCESS_POLICY = 5; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java index 2beca38e7..cec708ecf 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java @@ -247,8 +247,9 @@ public com.google.protobuf.ByteString getFeedIdBytes() { * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
@@ -265,8 +266,9 @@ public boolean hasFeed() { * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
@@ -283,8 +285,9 @@ public com.google.cloud.asset.v1.Feed getFeed() { * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
@@ -903,8 +906,9 @@ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -920,8 +924,9 @@ public boolean hasFeed() { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -941,8 +946,9 @@ public com.google.cloud.asset.v1.Feed getFeed() { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -966,8 +972,9 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -988,8 +995,9 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -1014,8 +1022,9 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -1037,8 +1046,9 @@ public Builder clearFeed() { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -1054,8 +1064,9 @@ public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
@@ -1073,8 +1084,9 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { * * *
-     * Required. The feed details. The field `name` must be empty and it will be
-     * generated in the format of: projects/project_number/feeds/feed_id
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
      * folders/folder_number/feeds/feed_id
      * organizations/organization_number/feeds/feed_id
      * 
diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java index 8b873ad91..50a62037b 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java @@ -87,8 +87,9 @@ public interface CreateFeedRequestOrBuilder * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
@@ -102,8 +103,9 @@ public interface CreateFeedRequestOrBuilder * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
@@ -117,8 +119,9 @@ public interface CreateFeedRequestOrBuilder * * *
-   * Required. The feed details. The field `name` must be empty and it will be
-   * generated in the format of: projects/project_number/feeds/feed_id
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
    * folders/folder_number/feeds/feed_id
    * organizations/organization_number/feeds/feed_id
    * 
diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java index 4bffc22c9..6ee6f354b 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java @@ -288,9 +288,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -306,9 +315,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -324,9 +342,18 @@ public int getAssetTypesCount() { * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -343,9 +370,18 @@ public java.lang.String getAssetTypes(int index) { * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -403,8 +439,7 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * @@ -421,8 +456,7 @@ public boolean hasOutputConfig() { * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * @@ -441,8 +475,7 @@ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * @@ -1238,9 +1271,18 @@ private void ensureAssetTypesIsMutable() { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1256,9 +1298,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1274,9 +1325,18 @@ public int getAssetTypesCount() { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1293,9 +1353,18 @@ public java.lang.String getAssetTypes(int index) { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1312,9 +1381,18 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1338,9 +1416,18 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1363,9 +1450,18 @@ public Builder addAssetTypes(java.lang.String value) { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1385,9 +1481,18 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1406,9 +1511,18 @@ public Builder clearAssetTypes() { * * *
-     * A list of asset types of which to take a snapshot for. Example:
-     * "compute.googleapis.com/Disk". If specified, only matching assets will be
-     * returned. See [Introduction to Cloud Asset
+     * A list of asset types to take a snapshot for. For example:
+     * "compute.googleapis.com/Disk".
+     * Regular expressions are also supported. For example:
+     * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+     * with "compute.googleapis.com".
+     * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+     * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+     * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+     * regular expression syntax. If the regular expression does not match any
+     * supported asset type, an INVALID_ARGUMENT error will be returned.
+     * If specified, only matching assets will be returned, otherwise, it will
+     * snapshot all asset types. See [Introduction to Cloud Asset
      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
      * for all supported asset types.
      * 
@@ -1535,8 +1649,7 @@ public Builder clearContentType() { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1552,8 +1665,7 @@ public boolean hasOutputConfig() { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1575,8 +1687,7 @@ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1600,8 +1711,7 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1622,8 +1732,7 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder bu * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1651,8 +1760,7 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1674,8 +1782,7 @@ public Builder clearOutputConfig() { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1691,8 +1798,7 @@ public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() { * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * @@ -1712,8 +1818,7 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( * * *
-     * Required. Output configuration indicating where the results will be output
-     * to.
+     * Required. Output configuration indicating where the results will be output to.
      * 
* * diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index 9edf3be27..059192137 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -109,9 +109,18 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -125,9 +134,18 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -141,9 +159,18 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -158,9 +185,18 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * A list of asset types of which to take a snapshot for. Example:
-   * "compute.googleapis.com/Disk". If specified, only matching assets will be
-   * returned. See [Introduction to Cloud Asset
+   * A list of asset types to take a snapshot for. For example:
+   * "compute.googleapis.com/Disk".
+   * Regular expressions are also supported. For example:
+   * * "compute.googleapis.com.*" snapshots resources whose asset type starts
+   * with "compute.googleapis.com".
+   * * ".*Instance" snapshots resources whose asset type ends with "Instance".
+   * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+   * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+   * regular expression syntax. If the regular expression does not match any
+   * supported asset type, an INVALID_ARGUMENT error will be returned.
+   * If specified, only matching assets will be returned, otherwise, it will
+   * snapshot all asset types. See [Introduction to Cloud Asset
    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
    * for all supported asset types.
    * 
@@ -203,8 +239,7 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * @@ -218,8 +253,7 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * @@ -233,8 +267,7 @@ public interface ExportAssetsRequestOrBuilder * * *
-   * Required. Output configuration indicating where the results will be output
-   * to.
+   * Required. Output configuration indicating where the results will be output to.
    * 
* * diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java index fafa13c55..09e052113 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java @@ -23,10 +23,8 @@ * *
  * The export asset response. This message is returned by the
- * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
- * method in the returned
- * [google.longrunning.Operation.response][google.longrunning.Operation.response]
- * field.
+ * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
+ * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
  * 
* * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse} @@ -101,6 +99,22 @@ private ExportAssetsResponse( outputConfig_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + com.google.cloud.asset.v1.OutputResult.Builder subBuilder = null; + if (outputResult_ != null) { + subBuilder = outputResult_.toBuilder(); + } + outputResult_ = + input.readMessage( + com.google.cloud.asset.v1.OutputResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + break; } default: @@ -231,6 +245,66 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( return getOutputConfig(); } + public static final int OUTPUT_RESULT_FIELD_NUMBER = 3; + private com.google.cloud.asset.v1.OutputResult outputResult_; + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return Whether the outputResult field is set. + */ + @java.lang.Override + public boolean hasOutputResult() { + return outputResult_ != null; + } + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return The outputResult. + */ + @java.lang.Override + public com.google.cloud.asset.v1.OutputResult getOutputResult() { + return outputResult_ == null + ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() + : outputResult_; + } + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + @java.lang.Override + public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder() { + return getOutputResult(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -251,6 +325,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(2, getOutputConfig()); } + if (outputResult_ != null) { + output.writeMessage(3, getOutputResult()); + } unknownFields.writeTo(output); } @@ -266,6 +343,9 @@ public int getSerializedSize() { if (outputConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); } + if (outputResult_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -290,6 +370,10 @@ public boolean equals(final java.lang.Object obj) { if (hasOutputConfig()) { if (!getOutputConfig().equals(other.getOutputConfig())) return false; } + if (hasOutputResult() != other.hasOutputResult()) return false; + if (hasOutputResult()) { + if (!getOutputResult().equals(other.getOutputResult())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,6 +393,10 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputConfig().hashCode(); } + if (hasOutputResult()) { + hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getOutputResult().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -414,10 +502,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * The export asset response. This message is returned by the
-   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
-   * method in the returned
-   * [google.longrunning.Operation.response][google.longrunning.Operation.response]
-   * field.
+   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
+   * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
    * 
* * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse} @@ -470,6 +556,12 @@ public Builder clear() { outputConfig_ = null; outputConfigBuilder_ = null; } + if (outputResultBuilder_ == null) { + outputResult_ = null; + } else { + outputResult_ = null; + outputResultBuilder_ = null; + } return this; } @@ -507,6 +599,11 @@ public com.google.cloud.asset.v1.ExportAssetsResponse buildPartial() { } else { result.outputConfig_ = outputConfigBuilder_.build(); } + if (outputResultBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputResultBuilder_.build(); + } onBuilt(); return result; } @@ -562,6 +659,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsResponse other) { if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } + if (other.hasOutputResult()) { + mergeOutputResult(other.getOutputResult()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -955,6 +1055,227 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( return outputConfigBuilder_; } + private com.google.cloud.asset.v1.OutputResult outputResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputResult, + com.google.cloud.asset.v1.OutputResult.Builder, + com.google.cloud.asset.v1.OutputResultOrBuilder> + outputResultBuilder_; + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return Whether the outputResult field is set. + */ + public boolean hasOutputResult() { + return outputResultBuilder_ != null || outputResult_ != null; + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return The outputResult. + */ + public com.google.cloud.asset.v1.OutputResult getOutputResult() { + if (outputResultBuilder_ == null) { + return outputResult_ == null + ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() + : outputResult_; + } else { + return outputResultBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult value) { + if (outputResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputResultBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult.Builder builderForValue) { + if (outputResultBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public Builder mergeOutputResult(com.google.cloud.asset.v1.OutputResult value) { + if (outputResultBuilder_ == null) { + if (outputResult_ != null) { + outputResult_ = + com.google.cloud.asset.v1.OutputResult.newBuilder(outputResult_) + .mergeFrom(value) + .buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + outputResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public Builder clearOutputResult() { + if (outputResultBuilder_ == null) { + outputResult_ = null; + onChanged(); + } else { + outputResult_ = null; + outputResultBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public com.google.cloud.asset.v1.OutputResult.Builder getOutputResultBuilder() { + + onChanged(); + return getOutputResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder() { + if (outputResultBuilder_ != null) { + return outputResultBuilder_.getMessageOrBuilder(); + } else { + return outputResult_ == null + ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() + : outputResult_; + } + } + /** + * + * + *
+     * Output result indicating where the assets were exported to. For example, a
+     * set of actual Google Cloud Storage object uris where the assets are
+     * exported to. The uris can be different from what [output_config] has
+     * specified, as the service will split the output object into multiple ones
+     * once it exceeds a single Google Cloud Storage object limit.
+     * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputResult, + com.google.cloud.asset.v1.OutputResult.Builder, + com.google.cloud.asset.v1.OutputResultOrBuilder> + getOutputResultFieldBuilder() { + if (outputResultBuilder_ == null) { + outputResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputResult, + com.google.cloud.asset.v1.OutputResult.Builder, + com.google.cloud.asset.v1.OutputResultOrBuilder>( + getOutputResult(), getParentForChildren(), isClean()); + outputResult_ = null; + } + return outputResultBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java index 164821978..83e57dbaf 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java @@ -92,4 +92,51 @@ public interface ExportAssetsResponseOrBuilder * .google.cloud.asset.v1.OutputConfig output_config = 2; */ com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); + + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return Whether the outputResult field is set. + */ + boolean hasOutputResult(); + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + * + * @return The outputResult. + */ + com.google.cloud.asset.v1.OutputResult getOutputResult(); + /** + * + * + *
+   * Output result indicating where the assets were exported to. For example, a
+   * set of actual Google Cloud Storage object uris where the assets are
+   * exported to. The uris can be different from what [output_config] has
+   * specified, as the service will split the output object into multiple ones
+   * once it exceeds a single Google Cloud Storage object limit.
+   * 
+ * + * .google.cloud.asset.v1.OutputResult output_result = 3; + */ + com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(); } diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java index fcd48ce7e..3b1258cbe 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java @@ -521,8 +521,11 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -543,8 +546,11 @@ public boolean hasCondition() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -565,8 +571,11 @@ public com.google.type.Expr getCondition() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -1941,8 +1950,11 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -1962,8 +1974,11 @@ public boolean hasCondition() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -1987,8 +2002,11 @@ public com.google.type.Expr getCondition() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2016,8 +2034,11 @@ public Builder setCondition(com.google.type.Expr value) { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2042,8 +2063,11 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2072,8 +2096,11 @@ public Builder mergeCondition(com.google.type.Expr value) { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2099,8 +2126,11 @@ public Builder clearCondition() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2120,8 +2150,11 @@ public com.google.type.Expr.Builder getConditionBuilder() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -2143,8 +2176,11 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java index 90864c4df..22b8ec9c0 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java @@ -293,8 +293,11 @@ public interface FeedOrBuilder * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -312,8 +315,11 @@ public interface FeedOrBuilder * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; @@ -331,8 +337,11 @@ public interface FeedOrBuilder * When set, `expression` field in the `Expr` must be a valid [CEL expression] * (https://github.com/google/cel-spec) on a TemporalAsset with name * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields in `Expr` are + * == true") will only publish Asset deletions. Other fields of `Expr` are * optional. + * See our [user + * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition) + * for detailed instructions. * * * .google.type.Expr condition = 6; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java new file mode 100644 index 000000000..7a28ec866 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java @@ -0,0 +1,748 @@ +/* + * 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/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * A Cloud Storage output result.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} + */ +public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GcsOutputResult) + GcsOutputResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsOutputResult.newBuilder() to construct. + private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsOutputResult() { + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsOutputResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcsOutputResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + uris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + uris_.add(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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + uris_ = uris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.GcsOutputResult.class, + com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + } + + public static final int URIS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList uris_; + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + 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 { + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + 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.asset.v1.GcsOutputResult)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.GcsOutputResult other = + (com.google.cloud.asset.v1.GcsOutputResult) obj; + + if (!getUrisList().equals(other.getUrisList())) 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(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult 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; + } + /** + * + * + *
+   * A Cloud Storage output result.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GcsOutputResult) + com.google.cloud.asset.v1.GcsOutputResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.GcsOutputResult.class, + com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.GcsOutputResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult getDefaultInstanceForType() { + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult build() { + com.google.cloud.asset.v1.GcsOutputResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult buildPartial() { + com.google.cloud.asset.v1.GcsOutputResult result = + new com.google.cloud.asset.v1.GcsOutputResult(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + uris_ = uris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.uris_ = uris_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.GcsOutputResult) { + return mergeFrom((com.google.cloud.asset.v1.GcsOutputResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.GcsOutputResult other) { + if (other == com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) return this; + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.GcsOutputResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.GcsOutputResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUrisIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of uris of the Cloud Storage objects. Example:
+     * "gs://bucket_name/object_name".
+     * 
+ * + * repeated string uris = 1; + * + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(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.asset.v1.GcsOutputResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GcsOutputResult) + private static final com.google.cloud.asset.v1.GcsOutputResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GcsOutputResult(); + } + + public static com.google.cloud.asset.v1.GcsOutputResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsOutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsOutputResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java new file mode 100644 index 000000000..b5ed3e0d7 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java @@ -0,0 +1,80 @@ +/* + * 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/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GcsOutputResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsOutputResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @return A list containing the uris. + */ + java.util.List getUrisList(); + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @return The count of uris. + */ + int getUrisCount(); + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + java.lang.String getUris(int index); + /** + * + * + *
+   * List of uris of the Cloud Storage objects. Example:
+   * "gs://bucket_name/object_name".
+   * 
+ * + * repeated string uris = 1; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + com.google.protobuf.ByteString getUrisBytes(int index); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java index 3803e147c..6e484cf78 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java @@ -161,7 +161,7 @@ public interface ExplanationOrBuilder *
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -179,7 +179,7 @@ public interface ExplanationOrBuilder
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -203,7 +203,7 @@ public interface ExplanationOrBuilder
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -224,7 +224,7 @@ public interface ExplanationOrBuilder
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -245,7 +245,7 @@ public interface ExplanationOrBuilder
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -1227,7 +1227,7 @@ public int getMatchedPermissionsCount() {
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -1260,7 +1260,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -1284,7 +1284,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -1315,7 +1315,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
      * 
      * The map from roles to their included permissions that match the
      * permission query (i.e., a query containing `policy.role.permissions:`).
-     * Example: if query `policy.role.permissions : "compute.disk.get"`
+     * Example: if query `policy.role.permissions:compute.disk.get`
      * matches a policy binding that contains owner role, the
      * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
      * roles can also be found in the returned `policy` bindings. Note that the
@@ -1747,7 +1747,7 @@ public int getMatchedPermissionsCount() {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1780,7 +1780,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1804,7 +1804,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1836,7 +1836,7 @@ public boolean containsMatchedPermissions(java.lang.String key) {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1873,7 +1873,7 @@ public Builder clearMatchedPermissions() {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1905,7 +1905,7 @@ public Builder removeMatchedPermissions(java.lang.String key) {
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -1934,7 +1934,7 @@ public Builder putMatchedPermissions(
        * 
        * The map from roles to their included permissions that match the
        * permission query (i.e., a query containing `policy.role.permissions:`).
-       * Example: if query `policy.role.permissions : "compute.disk.get"`
+       * Example: if query `policy.role.permissions:compute.disk.get`
        * matches a policy binding that contains owner role, the
        * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
        * roles can also be found in the returned `policy` bindings. Note that the
@@ -2020,7 +2020,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultIns
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `resource`:
-   * * use a field query. Example: `resource : "organizations/123"`
+   * * use a field query. Example: `resource:organizations/123`
    * 
* * string resource = 1; @@ -2050,7 +2050,7 @@ public java.lang.String getResource() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2142,13 +2142,13 @@ public com.google.protobuf.ByteString getProjectBytes() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -2168,13 +2168,13 @@ public boolean hasPolicy() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -2194,13 +2194,13 @@ public com.google.iam.v1.Policy getPolicy() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -2663,7 +2663,7 @@ public Builder mergeFrom( * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2692,7 +2692,7 @@ public java.lang.String getResource() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2721,7 +2721,7 @@ public com.google.protobuf.ByteString getResourceBytes() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2749,7 +2749,7 @@ public Builder setResource(java.lang.String value) { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2773,7 +2773,7 @@ public Builder clearResource() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` *
* * string resource = 1; @@ -2943,13 +2943,13 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -2968,13 +2968,13 @@ public boolean hasPolicy() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -2997,13 +2997,13 @@ public com.google.iam.v1.Policy getPolicy() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -3030,13 +3030,13 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -3060,13 +3060,13 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -3094,13 +3094,13 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` *
* * .google.iam.v1.Policy policy = 3; @@ -3125,13 +3125,13 @@ public Builder clearPolicy() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; @@ -3150,13 +3150,13 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; @@ -3177,13 +3177,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java index 19dbe2734..c6c95cad5 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java @@ -34,7 +34,7 @@ public interface IamPolicySearchResultOrBuilder * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` * * * string resource = 1; @@ -53,7 +53,7 @@ public interface IamPolicySearchResultOrBuilder * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `resource`: - * * use a field query. Example: `resource : "organizations/123"` + * * use a field query. Example: `resource:organizations/123` * * * string resource = 1; @@ -108,13 +108,13 @@ public interface IamPolicySearchResultOrBuilder * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; @@ -131,13 +131,13 @@ public interface IamPolicySearchResultOrBuilder * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; @@ -154,13 +154,13 @@ public interface IamPolicySearchResultOrBuilder * that match the given query. For queries that don't contain a constrain on * policies (e.g., an empty query), this contains all the bindings. * To search against the `policy` bindings: - * * use a field query, as following: + * * use a field query: * - query by the policy contained members. Example: - * `policy : "amy@gmail.com"` + * `policy:amy@gmail.com` * - query by the policy contained roles. Example: - * `policy : "roles/compute.admin"` - * - query by the policy contained roles' implied permissions. Example: - * `policy.role.permissions : "compute.instances.create"` + * `policy:roles/compute.admin` + * - query by the policy contained roles' included permissions. Example: + * `policy.role.permissions:compute.instances.create` * * * .google.iam.v1.Policy policy = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java new file mode 100644 index 000000000..9b39b45c6 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java @@ -0,0 +1,831 @@ +/* + * 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/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * Output result of export assets.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.OutputResult} + */ +public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.OutputResult) + OutputResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputResult.newBuilder() to construct. + private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OutputResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OutputResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OutputResult( + 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: + { + com.google.cloud.asset.v1.GcsOutputResult.Builder subBuilder = null; + if (resultCase_ == 1) { + subBuilder = ((com.google.cloud.asset.v1.GcsOutputResult) result_).toBuilder(); + } + result_ = + input.readMessage( + com.google.cloud.asset.v1.GcsOutputResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.asset.v1.GcsOutputResult) result_); + result_ = subBuilder.buildPartial(); + } + resultCase_ = 1; + 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.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.OutputResult.class, + com.google.cloud.asset.v1.OutputResult.Builder.class); + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_RESULT(1), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return GCS_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int GCS_RESULT_FIELD_NUMBER = 1; + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return Whether the gcsResult field is set. + */ + @java.lang.Override + public boolean hasGcsResult() { + return resultCase_ == 1; + } + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return The gcsResult. + */ + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { + if (resultCase_ == 1) { + return (com.google.cloud.asset.v1.GcsOutputResult) result_; + } + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { + if (resultCase_ == 1) { + return (com.google.cloud.asset.v1.GcsOutputResult) result_; + } + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + + 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 (resultCase_ == 1) { + output.writeMessage(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1.GcsOutputResult) result_); + } + 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.asset.v1.OutputResult)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.OutputResult other = (com.google.cloud.asset.v1.OutputResult) obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getGcsResult().equals(other.getGcsResult())) return false; + break; + case 0: + default: + } + 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(); + switch (resultCase_) { + case 1: + hash = (37 * hash) + GCS_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getGcsResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.OutputResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.OutputResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.OutputResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult 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; + } + /** + * + * + *
+   * Output result of export assets.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.OutputResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.OutputResult) + com.google.cloud.asset.v1.OutputResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.OutputResult.class, + com.google.cloud.asset.v1.OutputResult.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.OutputResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.OutputResult getDefaultInstanceForType() { + return com.google.cloud.asset.v1.OutputResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.OutputResult build() { + com.google.cloud.asset.v1.OutputResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.OutputResult buildPartial() { + com.google.cloud.asset.v1.OutputResult result = + new com.google.cloud.asset.v1.OutputResult(this); + if (resultCase_ == 1) { + if (gcsResultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = gcsResultBuilder_.build(); + } + } + result.resultCase_ = resultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.OutputResult) { + return mergeFrom((com.google.cloud.asset.v1.OutputResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.OutputResult other) { + if (other == com.google.cloud.asset.v1.OutputResult.getDefaultInstance()) return this; + switch (other.getResultCase()) { + case GCS_RESULT: + { + mergeGcsResult(other.getGcsResult()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.OutputResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.OutputResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder> + gcsResultBuilder_; + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return Whether the gcsResult field is set. + */ + @java.lang.Override + public boolean hasGcsResult() { + return resultCase_ == 1; + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return The gcsResult. + */ + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { + if (gcsResultBuilder_ == null) { + if (resultCase_ == 1) { + return (com.google.cloud.asset.v1.GcsOutputResult) result_; + } + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } else { + if (resultCase_ == 1) { + return gcsResultBuilder_.getMessage(); + } + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { + if (gcsResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + gcsResultBuilder_.setMessage(value); + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder builderForValue) { + if (gcsResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + gcsResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { + if (gcsResultBuilder_ == null) { + if (resultCase_ == 1 + && result_ != com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) { + result_ = + com.google.cloud.asset.v1.GcsOutputResult.newBuilder( + (com.google.cloud.asset.v1.GcsOutputResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 1) { + gcsResultBuilder_.mergeFrom(value); + } + gcsResultBuilder_.setMessage(value); + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + public Builder clearGcsResult() { + if (gcsResultBuilder_ == null) { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + } + gcsResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + public com.google.cloud.asset.v1.GcsOutputResult.Builder getGcsResultBuilder() { + return getGcsResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + @java.lang.Override + public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { + if ((resultCase_ == 1) && (gcsResultBuilder_ != null)) { + return gcsResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 1) { + return (com.google.cloud.asset.v1.GcsOutputResult) result_; + } + return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Export result on Cloud Storage.
+     * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder> + getGcsResultFieldBuilder() { + if (gcsResultBuilder_ == null) { + if (!(resultCase_ == 1)) { + result_ = com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); + } + gcsResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder>( + (com.google.cloud.asset.v1.GcsOutputResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 1; + onChanged(); + ; + return gcsResultBuilder_; + } + + @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.asset.v1.OutputResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.OutputResult) + private static final com.google.cloud.asset.v1.OutputResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.OutputResult(); + } + + public static com.google.cloud.asset.v1.OutputResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.OutputResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java new file mode 100644 index 000000000..454ff49af --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java @@ -0,0 +1,62 @@ +/* + * 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/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface OutputResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.OutputResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return Whether the gcsResult field is set. + */ + boolean hasGcsResult(); + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * + * @return The gcsResult. + */ + com.google.cloud.asset.v1.GcsOutputResult getGcsResult(); + /** + * + * + *
+   * Export result on Cloud Storage.
+   * 
+ * + * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + */ + com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder(); + + public com.google.cloud.asset.v1.OutputResult.ResultCase getResultCase(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java index 372999bbc..f3f7ebb88 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java @@ -22,7 +22,7 @@ * * *
- * A result of Resource Search, containing information of a cloud resoure.
+ * A result of Resource Search, containing information of a cloud resource.
  * 
* * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} @@ -217,8 +217,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -247,8 +247,8 @@ public java.lang.String getName() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -384,7 +384,7 @@ public com.google.protobuf.ByteString getProjectBytes() { *
    * The display name of this resource.
    * To search against the `display_name`:
-   * * use a field query. Example: `displayName : "My Instance"`
+   * * use a field query. Example: `displayName:"My Instance"`
    * * use a free text query. Example: `"My Instance"`
    * 
* @@ -410,7 +410,7 @@ public java.lang.String getDisplayName() { *
    * The display name of this resource.
    * To search against the `display_name`:
-   * * use a field query. Example: `displayName : "My Instance"`
+   * * use a field query. Example: `displayName:"My Instance"`
    * * use a free text query. Example: `"My Instance"`
    * 
* @@ -440,7 +440,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -467,7 +467,7 @@ public java.lang.String getDescription() { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -497,8 +497,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -524,8 +524,8 @@ public java.lang.String getLocation() { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -578,11 +578,11 @@ public int getLabelsCount() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -608,11 +608,11 @@ public java.util.Map getLabels() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -629,11 +629,11 @@ public java.util.Map getLabelsMap() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -654,11 +654,11 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -686,8 +686,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -706,8 +706,8 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -726,8 +726,8 @@ public int getNetworkTagsCount() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -747,8 +747,8 @@ public java.lang.String getNetworkTags(int index) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -766,13 +766,22 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -787,13 +796,22 @@ public boolean hasAdditionalAttributes() { * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -810,13 +828,22 @@ public com.google.protobuf.Struct getAdditionalAttributes() { * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -1082,7 +1109,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A result of Resource Search, containing information of a cloud resoure.
+   * A result of Resource Search, containing information of a cloud resource.
    * 
* * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} @@ -1339,8 +1366,8 @@ public Builder mergeFrom( * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -1368,8 +1395,8 @@ public java.lang.String getName() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -1397,8 +1424,8 @@ public com.google.protobuf.ByteString getNameBytes() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -1425,8 +1452,8 @@ public Builder setName(java.lang.String value) { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -1449,8 +1476,8 @@ public Builder clearName() { * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -1713,7 +1740,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { *
      * The display name of this resource.
      * To search against the `display_name`:
-     * * use a field query. Example: `displayName : "My Instance"`
+     * * use a field query. Example: `displayName:"My Instance"`
      * * use a free text query. Example: `"My Instance"`
      * 
* @@ -1738,7 +1765,7 @@ public java.lang.String getDisplayName() { *
      * The display name of this resource.
      * To search against the `display_name`:
-     * * use a field query. Example: `displayName : "My Instance"`
+     * * use a field query. Example: `displayName:"My Instance"`
      * * use a free text query. Example: `"My Instance"`
      * 
* @@ -1763,7 +1790,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { *
      * The display name of this resource.
      * To search against the `display_name`:
-     * * use a field query. Example: `displayName : "My Instance"`
+     * * use a field query. Example: `displayName:"My Instance"`
      * * use a free text query. Example: `"My Instance"`
      * 
* @@ -1787,7 +1814,7 @@ public Builder setDisplayName(java.lang.String value) { *
      * The display name of this resource.
      * To search against the `display_name`:
-     * * use a field query. Example: `displayName : "My Instance"`
+     * * use a field query. Example: `displayName:"My Instance"`
      * * use a free text query. Example: `"My Instance"`
      * 
* @@ -1807,7 +1834,7 @@ public Builder clearDisplayName() { *
      * The display name of this resource.
      * To search against the `display_name`:
-     * * use a field query. Example: `displayName : "My Instance"`
+     * * use a field query. Example: `displayName:"My Instance"`
      * * use a free text query. Example: `"My Instance"`
      * 
* @@ -1835,7 +1862,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -1861,7 +1888,7 @@ public java.lang.String getDescription() { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -1887,7 +1914,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -1912,7 +1939,7 @@ public Builder setDescription(java.lang.String value) { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -1933,7 +1960,7 @@ public Builder clearDescription() { * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -1961,8 +1988,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -1987,8 +2014,8 @@ public java.lang.String getLocation() { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -2013,8 +2040,8 @@ public com.google.protobuf.ByteString getLocationBytes() { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -2038,8 +2065,8 @@ public Builder setLocation(java.lang.String value) { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -2059,8 +2086,8 @@ public Builder clearLocation() { * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -2112,11 +2139,11 @@ public int getLabelsCount() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2142,11 +2169,11 @@ public java.util.Map getLabels() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2163,11 +2190,11 @@ public java.util.Map getLabelsMap() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2189,11 +2216,11 @@ public java.lang.String getLabelsOrDefault( * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2222,11 +2249,11 @@ public Builder clearLabels() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2251,11 +2278,11 @@ public java.util.Map getMutableLabels() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2278,11 +2305,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -2310,8 +2337,8 @@ private void ensureNetworkTagsIsMutable() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2330,8 +2357,8 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2350,8 +2377,8 @@ public int getNetworkTagsCount() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2371,8 +2398,8 @@ public java.lang.String getNetworkTags(int index) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2392,8 +2419,8 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2420,8 +2447,8 @@ public Builder setNetworkTags(int index, java.lang.String value) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2447,8 +2474,8 @@ public Builder addNetworkTags(java.lang.String value) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2471,8 +2498,8 @@ public Builder addAllNetworkTags(java.lang.Iterable values) { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2494,8 +2521,8 @@ public Builder clearNetworkTags() { * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -2524,13 +2551,22 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2544,13 +2580,22 @@ public boolean hasAdditionalAttributes() { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2570,13 +2615,22 @@ public com.google.protobuf.Struct getAdditionalAttributes() { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2598,13 +2652,22 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2623,13 +2686,22 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builde * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2655,13 +2727,22 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2681,13 +2762,22 @@ public Builder clearAdditionalAttributes() { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2701,13 +2791,22 @@ public com.google.protobuf.Struct.Builder getAdditionalAttributesBuilder() { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -2725,13 +2824,22 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { * * *
-     * The additional attributes of this resource. The attributes may vary from
-     * one resource type to another. Examples: `projectId` for Project,
-     * `dnsName` for DNS ManagedZone.
+     * The additional searchable attributes of this resource. The attributes may
+     * vary from one resource type to another. Examples: `projectId` for Project,
+     * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+     * metadata fields that are returned by the List or Get APIs provided by the
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
+     * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+     * for more information.
+     * You can search values of these fields through free text search. However,
+     * you should not consume the field programically as the field names and
+     * values may change as the GCP service updates to a new incompatible API
+     * version.
      * To search against the `additional_attributes`:
      * * use a free text query to match the attributes values. Example: to search
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-     *   `"foobar"`.
+     *   `foobar`.
      * 
* * .google.protobuf.Struct additional_attributes = 9; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java index 0d3bb9f9d..530d416f6 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java @@ -33,8 +33,8 @@ public interface ResourceSearchResultOrBuilder * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -52,8 +52,8 @@ public interface ResourceSearchResultOrBuilder * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) * for more information. * To search against the `name`: - * * use a field query. Example: `name : "instance1"` - * * use a free text query. Example: `"instance1"` + * * use a field query. Example: `name:instance1` + * * use a free text query. Example: `instance1` * * * string name = 1; @@ -128,7 +128,7 @@ public interface ResourceSearchResultOrBuilder *
    * The display name of this resource.
    * To search against the `display_name`:
-   * * use a field query. Example: `displayName : "My Instance"`
+   * * use a field query. Example: `displayName:"My Instance"`
    * * use a free text query. Example: `"My Instance"`
    * 
* @@ -143,7 +143,7 @@ public interface ResourceSearchResultOrBuilder *
    * The display name of this resource.
    * To search against the `display_name`:
-   * * use a field query. Example: `displayName : "My Instance"`
+   * * use a field query. Example: `displayName:"My Instance"`
    * * use a free text query. Example: `"My Instance"`
    * 
* @@ -160,7 +160,7 @@ public interface ResourceSearchResultOrBuilder * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -176,7 +176,7 @@ public interface ResourceSearchResultOrBuilder * One or more paragraphs of text description of this resource. Maximum length * could be up to 1M bytes. * To search against the `description`: - * * use a field query. Example: `description : "*important instance*"` + * * use a field query. Example: `description:"*important instance*"` * * use a free text query. Example: `"*important instance*"` * * @@ -193,8 +193,8 @@ public interface ResourceSearchResultOrBuilder * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -209,8 +209,8 @@ public interface ResourceSearchResultOrBuilder * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * To search against the `location`: - * * use a field query. Example: `location : "us-west*"` - * * use a free text query. Example: `"us-west*"` + * * use a field query. Example: `location:us-west*` + * * use a free text query. Example: `us-west*` * * * string location = 6; @@ -227,11 +227,11 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -245,11 +245,11 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -266,11 +266,11 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -284,11 +284,11 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -302,11 +302,11 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `labels`: - * * use a field query, as following: - * - query on any label's key or value. Example: `labels : "prod"` - * - query by a given label. Example: `labels.env : "prod"` - * - query by a given label'sexistence. Example: `labels.env : *` - * * use a free text query. Example: `"prod"` + * * use a field query: + * - query on any label's key or value. Example: `labels:prod` + * - query by a given label. Example: `labels.env:prod` + * - query by a given label's existence. Example: `labels.env:*` + * * use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -322,8 +322,8 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -340,8 +340,8 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -358,8 +358,8 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -377,8 +377,8 @@ public interface ResourceSearchResultOrBuilder * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) * for more information. * To search against the `network_tags`: - * * use a field query. Example: `networkTags : "internal"` - * * use a free text query. Example: `"internal"` + * * use a field query. Example: `networkTags:internal` + * * use a free text query. Example: `internal` * * * repeated string network_tags = 8; @@ -392,13 +392,22 @@ public interface ResourceSearchResultOrBuilder * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -410,13 +419,22 @@ public interface ResourceSearchResultOrBuilder * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; @@ -428,13 +446,22 @@ public interface ResourceSearchResultOrBuilder * * *
-   * The additional attributes of this resource. The attributes may vary from
-   * one resource type to another. Examples: `projectId` for Project,
-   * `dnsName` for DNS ManagedZone.
+   * The additional searchable attributes of this resource. The attributes may
+   * vary from one resource type to another. Examples: `projectId` for Project,
+   * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+   * metadata fields that are returned by the List or Get APIs provided by the
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
+   * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+   * for more information.
+   * You can search values of these fields through free text search. However,
+   * you should not consume the field programically as the field names and
+   * values may change as the GCP service updates to a new incompatible API
+   * version.
    * To search against the `additional_attributes`:
    * * use a free text query to match the attributes values. Example: to search
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-   *   `"foobar"`.
+   *   `foobar`.
    * 
* * .google.protobuf.Struct additional_attributes = 9; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java index 6faef9d6a..4bda1f60c 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java @@ -138,13 +138,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the IAM policies within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the IAM policies within the `scope`. The caller must be granted
+   * the
+   * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -167,13 +170,16 @@ public java.lang.String getScope() { * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the IAM policies within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the IAM policies within the `scope`. The caller must be granted
+   * the
+   * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -199,24 +205,30 @@ public com.google.protobuf.ByteString getScopeBytes() { * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the IAM policies within the given `scope`.
-   * Examples:
-   * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-   *   specify user "amy@gmail.com".
-   * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-   *   specify the Compute Admin role.
-   * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-   *   policy bindings that specify a role containing "storage.buckets.update"
-   *   permission.
-   * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-   *   are set on "organizations/123".
-   * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-   *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-   *   "folders/1234", and also specify user "amy".
-   * See [how to construct a
+   * Optional. The query statement. See [how to construct a
    * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-   * for more details.
+   * for more information. If not specified or empty, it will search all the
+   * IAM policies within the specified `scope`.
+   * Examples:
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+   *   "amy@gmail.com".
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+   *   the Compute Admin role.
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+   *   bindings that specify a role containing "storage.buckets.update"
+   *   permission. Note that if callers don't have `iam.roles.get` access to a
+   *   role's included permissions, policy bindings that specify this role will
+   *   be dropped from the search results.
+   * * `resource:organizations/123456` to find IAM policy bindings
+   *   that are set on "organizations/123456".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
+   *   word in any of the searchable fields (except for the included
+   *   permissions).
+   * * `*por*` to find IAM policy bindings that contain "por" as a substring
+   *   in any of the searchable fields (except for the included permissions).
+   * * `resource:(instance1 OR instance2) policy:amy` to find
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -239,24 +251,30 @@ public java.lang.String getQuery() { * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the IAM policies within the given `scope`.
-   * Examples:
-   * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-   *   specify user "amy@gmail.com".
-   * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-   *   specify the Compute Admin role.
-   * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-   *   policy bindings that specify a role containing "storage.buckets.update"
-   *   permission.
-   * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-   *   are set on "organizations/123".
-   * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-   *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-   *   "folders/1234", and also specify user "amy".
-   * See [how to construct a
+   * Optional. The query statement. See [how to construct a
    * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-   * for more details.
+   * for more information. If not specified or empty, it will search all the
+   * IAM policies within the specified `scope`.
+   * Examples:
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+   *   "amy@gmail.com".
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+   *   the Compute Admin role.
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+   *   bindings that specify a role containing "storage.buckets.update"
+   *   permission. Note that if callers don't have `iam.roles.get` access to a
+   *   role's included permissions, policy bindings that specify this role will
+   *   be dropped from the search results.
+   * * `resource:organizations/123456` to find IAM policy bindings
+   *   that are set on "organizations/123456".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
+   *   word in any of the searchable fields (except for the included
+   *   permissions).
+   * * `*por*` to find IAM policy bindings that contain "por" as a substring
+   *   in any of the searchable fields (except for the included permissions).
+   * * `resource:(instance1 OR instance2) policy:amy` to find
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -282,11 +300,10 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-   * Optional. The page size for search result pagination. Page size is capped
-   * at 500 even if a larger value is given. If set to zero, server will pick an
-   * appropriate default. Returned results may be fewer than requested. When
-   * this happens, there could be more results as long as `next_page_token` is
-   * returned.
+   * Optional. The page size for search result pagination. Page size is capped at 500 even
+   * if a larger value is given. If set to zero, server will pick an appropriate
+   * default. Returned results may be fewer than requested. When this happens,
+   * there could be more results as long as `next_page_token` is returned.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -304,10 +321,10 @@ public int getPageSize() { * * *
-   * Optional. If present, retrieve the next batch of results from the preceding
-   * call to this method. `page_token` must be the value of `next_page_token`
-   * from the previous response. The values of all other method parameters must
-   * be identical to those in the previous call.
+   * Optional. If present, retrieve the next batch of results from the preceding call to
+   * this method. `page_token` must be the value of `next_page_token` from the
+   * previous response. The values of all other method parameters must be
+   * identical to those in the previous call.
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -330,10 +347,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. If present, retrieve the next batch of results from the preceding
-   * call to this method. `page_token` must be the value of `next_page_token`
-   * from the previous response. The values of all other method parameters must
-   * be identical to those in the previous call.
+   * Optional. If present, retrieve the next batch of results from the preceding call to
+   * this method. `page_token` must be the value of `next_page_token` from the
+   * previous response. The values of all other method parameters must be
+   * identical to those in the previous call.
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -724,13 +741,16 @@ public Builder mergeFrom( * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the IAM policies within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the IAM policies within the `scope`. The caller must be granted
+     * the
+     * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -752,13 +772,16 @@ public java.lang.String getScope() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the IAM policies within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the IAM policies within the `scope`. The caller must be granted
+     * the
+     * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -780,13 +803,16 @@ public com.google.protobuf.ByteString getScopeBytes() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the IAM policies within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the IAM policies within the `scope`. The caller must be granted
+     * the
+     * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -807,13 +833,16 @@ public Builder setScope(java.lang.String value) { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the IAM policies within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the IAM policies within the `scope`. The caller must be granted
+     * the
+     * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -830,13 +859,16 @@ public Builder clearScope() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the IAM policies within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the IAM policies within the `scope`. The caller must be granted
+     * the
+     * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -860,24 +892,30 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the IAM policies within the given `scope`.
-     * Examples:
-     * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-     *   specify user "amy@gmail.com".
-     * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-     *   specify the Compute Admin role.
-     * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-     *   policy bindings that specify a role containing "storage.buckets.update"
-     *   permission.
-     * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-     *   are set on "organizations/123".
-     * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-     *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-     *   "folders/1234", and also specify user "amy".
-     * See [how to construct a
+     * Optional. The query statement. See [how to construct a
      * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-     * for more details.
+     * for more information. If not specified or empty, it will search all the
+     * IAM policies within the specified `scope`.
+     * Examples:
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+     *   "amy@gmail.com".
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+     *   the Compute Admin role.
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+     *   bindings that specify a role containing "storage.buckets.update"
+     *   permission. Note that if callers don't have `iam.roles.get` access to a
+     *   role's included permissions, policy bindings that specify this role will
+     *   be dropped from the search results.
+     * * `resource:organizations/123456` to find IAM policy bindings
+     *   that are set on "organizations/123456".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
+     *   word in any of the searchable fields (except for the included
+     *   permissions).
+     * * `*por*` to find IAM policy bindings that contain "por" as a substring
+     *   in any of the searchable fields (except for the included permissions).
+     * * `resource:(instance1 OR instance2) policy:amy` to find
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -899,24 +937,30 @@ public java.lang.String getQuery() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the IAM policies within the given `scope`.
-     * Examples:
-     * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-     *   specify user "amy@gmail.com".
-     * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-     *   specify the Compute Admin role.
-     * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-     *   policy bindings that specify a role containing "storage.buckets.update"
-     *   permission.
-     * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-     *   are set on "organizations/123".
-     * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-     *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-     *   "folders/1234", and also specify user "amy".
-     * See [how to construct a
+     * Optional. The query statement. See [how to construct a
      * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-     * for more details.
+     * for more information. If not specified or empty, it will search all the
+     * IAM policies within the specified `scope`.
+     * Examples:
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+     *   "amy@gmail.com".
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+     *   the Compute Admin role.
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+     *   bindings that specify a role containing "storage.buckets.update"
+     *   permission. Note that if callers don't have `iam.roles.get` access to a
+     *   role's included permissions, policy bindings that specify this role will
+     *   be dropped from the search results.
+     * * `resource:organizations/123456` to find IAM policy bindings
+     *   that are set on "organizations/123456".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
+     *   word in any of the searchable fields (except for the included
+     *   permissions).
+     * * `*por*` to find IAM policy bindings that contain "por" as a substring
+     *   in any of the searchable fields (except for the included permissions).
+     * * `resource:(instance1 OR instance2) policy:amy` to find
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -938,24 +982,30 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the IAM policies within the given `scope`.
-     * Examples:
-     * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-     *   specify user "amy@gmail.com".
-     * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-     *   specify the Compute Admin role.
-     * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-     *   policy bindings that specify a role containing "storage.buckets.update"
-     *   permission.
-     * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-     *   are set on "organizations/123".
-     * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-     *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-     *   "folders/1234", and also specify user "amy".
-     * See [how to construct a
+     * Optional. The query statement. See [how to construct a
      * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-     * for more details.
+     * for more information. If not specified or empty, it will search all the
+     * IAM policies within the specified `scope`.
+     * Examples:
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+     *   "amy@gmail.com".
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+     *   the Compute Admin role.
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+     *   bindings that specify a role containing "storage.buckets.update"
+     *   permission. Note that if callers don't have `iam.roles.get` access to a
+     *   role's included permissions, policy bindings that specify this role will
+     *   be dropped from the search results.
+     * * `resource:organizations/123456` to find IAM policy bindings
+     *   that are set on "organizations/123456".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
+     *   word in any of the searchable fields (except for the included
+     *   permissions).
+     * * `*por*` to find IAM policy bindings that contain "por" as a substring
+     *   in any of the searchable fields (except for the included permissions).
+     * * `resource:(instance1 OR instance2) policy:amy` to find
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,24 +1026,30 @@ public Builder setQuery(java.lang.String value) { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the IAM policies within the given `scope`.
-     * Examples:
-     * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-     *   specify user "amy@gmail.com".
-     * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-     *   specify the Compute Admin role.
-     * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-     *   policy bindings that specify a role containing "storage.buckets.update"
-     *   permission.
-     * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-     *   are set on "organizations/123".
-     * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-     *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-     *   "folders/1234", and also specify user "amy".
-     * See [how to construct a
+     * Optional. The query statement. See [how to construct a
      * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-     * for more details.
+     * for more information. If not specified or empty, it will search all the
+     * IAM policies within the specified `scope`.
+     * Examples:
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+     *   "amy@gmail.com".
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+     *   the Compute Admin role.
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+     *   bindings that specify a role containing "storage.buckets.update"
+     *   permission. Note that if callers don't have `iam.roles.get` access to a
+     *   role's included permissions, policy bindings that specify this role will
+     *   be dropped from the search results.
+     * * `resource:organizations/123456` to find IAM policy bindings
+     *   that are set on "organizations/123456".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
+     *   word in any of the searchable fields (except for the included
+     *   permissions).
+     * * `*por*` to find IAM policy bindings that contain "por" as a substring
+     *   in any of the searchable fields (except for the included permissions).
+     * * `resource:(instance1 OR instance2) policy:amy` to find
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1010,24 +1066,30 @@ public Builder clearQuery() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the IAM policies within the given `scope`.
-     * Examples:
-     * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-     *   specify user "amy@gmail.com".
-     * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-     *   specify the Compute Admin role.
-     * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-     *   policy bindings that specify a role containing "storage.buckets.update"
-     *   permission.
-     * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-     *   are set on "organizations/123".
-     * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-     *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-     *   "folders/1234", and also specify user "amy".
-     * See [how to construct a
+     * Optional. The query statement. See [how to construct a
      * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-     * for more details.
+     * for more information. If not specified or empty, it will search all the
+     * IAM policies within the specified `scope`.
+     * Examples:
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+     *   "amy@gmail.com".
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+     *   the Compute Admin role.
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+     *   bindings that specify a role containing "storage.buckets.update"
+     *   permission. Note that if callers don't have `iam.roles.get` access to a
+     *   role's included permissions, policy bindings that specify this role will
+     *   be dropped from the search results.
+     * * `resource:organizations/123456` to find IAM policy bindings
+     *   that are set on "organizations/123456".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
+     *   word in any of the searchable fields (except for the included
+     *   permissions).
+     * * `*por*` to find IAM policy bindings that contain "por" as a substring
+     *   in any of the searchable fields (except for the included permissions).
+     * * `resource:(instance1 OR instance2) policy:amy` to find
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1051,11 +1113,10 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1070,11 +1131,10 @@ public int getPageSize() { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1092,11 +1152,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1115,10 +1174,10 @@ public Builder clearPageSize() { * * *
-     * Optional. If present, retrieve the next batch of results from the preceding
-     * call to this method. `page_token` must be the value of `next_page_token`
-     * from the previous response. The values of all other method parameters must
-     * be identical to those in the previous call.
+     * Optional. If present, retrieve the next batch of results from the preceding call to
+     * this method. `page_token` must be the value of `next_page_token` from the
+     * previous response. The values of all other method parameters must be
+     * identical to those in the previous call.
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1140,10 +1199,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. If present, retrieve the next batch of results from the preceding
-     * call to this method. `page_token` must be the value of `next_page_token`
-     * from the previous response. The values of all other method parameters must
-     * be identical to those in the previous call.
+     * Optional. If present, retrieve the next batch of results from the preceding call to
+     * this method. `page_token` must be the value of `next_page_token` from the
+     * previous response. The values of all other method parameters must be
+     * identical to those in the previous call.
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1165,10 +1224,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. If present, retrieve the next batch of results from the preceding
-     * call to this method. `page_token` must be the value of `next_page_token`
-     * from the previous response. The values of all other method parameters must
-     * be identical to those in the previous call.
+     * Optional. If present, retrieve the next batch of results from the preceding call to
+     * this method. `page_token` must be the value of `next_page_token` from the
+     * previous response. The values of all other method parameters must be
+     * identical to those in the previous call.
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1189,10 +1248,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. If present, retrieve the next batch of results from the preceding
-     * call to this method. `page_token` must be the value of `next_page_token`
-     * from the previous response. The values of all other method parameters must
-     * be identical to those in the previous call.
+     * Optional. If present, retrieve the next batch of results from the preceding call to
+     * this method. `page_token` must be the value of `next_page_token` from the
+     * previous response. The values of all other method parameters must be
+     * identical to those in the previous call.
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1209,10 +1268,10 @@ public Builder clearPageToken() { * * *
-     * Optional. If present, retrieve the next batch of results from the preceding
-     * call to this method. `page_token` must be the value of `next_page_token`
-     * from the previous response. The values of all other method parameters must
-     * be identical to those in the previous call.
+     * Optional. If present, retrieve the next batch of results from the preceding call to
+     * this method. `page_token` must be the value of `next_page_token` from the
+     * previous response. The values of all other method parameters must be
+     * identical to those in the previous call.
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java index 9b7e127db..0e11e1e4a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java @@ -27,13 +27,16 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the IAM policies within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the IAM policies within the `scope`. The caller must be granted
+   * the
+   * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,13 +48,16 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the IAM policies within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the IAM policies within the `scope`. The caller must be granted
+   * the
+   * [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -64,24 +70,30 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the IAM policies within the given `scope`.
-   * Examples:
-   * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-   *   specify user "amy@gmail.com".
-   * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-   *   specify the Compute Admin role.
-   * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-   *   policy bindings that specify a role containing "storage.buckets.update"
-   *   permission.
-   * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-   *   are set on "organizations/123".
-   * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-   *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-   *   "folders/1234", and also specify user "amy".
-   * See [how to construct a
+   * Optional. The query statement. See [how to construct a
    * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-   * for more details.
+   * for more information. If not specified or empty, it will search all the
+   * IAM policies within the specified `scope`.
+   * Examples:
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+   *   "amy@gmail.com".
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+   *   the Compute Admin role.
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+   *   bindings that specify a role containing "storage.buckets.update"
+   *   permission. Note that if callers don't have `iam.roles.get` access to a
+   *   role's included permissions, policy bindings that specify this role will
+   *   be dropped from the search results.
+   * * `resource:organizations/123456` to find IAM policy bindings
+   *   that are set on "organizations/123456".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
+   *   word in any of the searchable fields (except for the included
+   *   permissions).
+   * * `*por*` to find IAM policy bindings that contain "por" as a substring
+   *   in any of the searchable fields (except for the included permissions).
+   * * `resource:(instance1 OR instance2) policy:amy` to find
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -93,24 +105,30 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the IAM policies within the given `scope`.
-   * Examples:
-   * * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-   *   specify user "amy@gmail.com".
-   * * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-   *   specify the Compute Admin role.
-   * * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-   *   policy bindings that specify a role containing "storage.buckets.update"
-   *   permission.
-   * * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-   *   are set on "organizations/123".
-   * * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-   *   to find Cloud IAM policy bindings that are set on "organizations/123" or
-   *   "folders/1234", and also specify user "amy".
-   * See [how to construct a
+   * Optional. The query statement. See [how to construct a
    * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-   * for more details.
+   * for more information. If not specified or empty, it will search all the
+   * IAM policies within the specified `scope`.
+   * Examples:
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+   *   "amy@gmail.com".
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
+   *   the Compute Admin role.
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
+   *   bindings that specify a role containing "storage.buckets.update"
+   *   permission. Note that if callers don't have `iam.roles.get` access to a
+   *   role's included permissions, policy bindings that specify this role will
+   *   be dropped from the search results.
+   * * `resource:organizations/123456` to find IAM policy bindings
+   *   that are set on "organizations/123456".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
+   *   word in any of the searchable fields (except for the included
+   *   permissions).
+   * * `*por*` to find IAM policy bindings that contain "por" as a substring
+   *   in any of the searchable fields (except for the included permissions).
+   * * `resource:(instance1 OR instance2) policy:amy` to find
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -123,11 +141,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Optional. The page size for search result pagination. Page size is capped
-   * at 500 even if a larger value is given. If set to zero, server will pick an
-   * appropriate default. Returned results may be fewer than requested. When
-   * this happens, there could be more results as long as `next_page_token` is
-   * returned.
+   * Optional. The page size for search result pagination. Page size is capped at 500 even
+   * if a larger value is given. If set to zero, server will pick an appropriate
+   * default. Returned results may be fewer than requested. When this happens,
+   * there could be more results as long as `next_page_token` is returned.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -140,10 +157,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Optional. If present, retrieve the next batch of results from the preceding
-   * call to this method. `page_token` must be the value of `next_page_token`
-   * from the previous response. The values of all other method parameters must
-   * be identical to those in the previous call.
+   * Optional. If present, retrieve the next batch of results from the preceding call to
+   * this method. `page_token` must be the value of `next_page_token` from the
+   * previous response. The values of all other method parameters must be
+   * identical to those in the previous call.
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -155,10 +172,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
-   * Optional. If present, retrieve the next batch of results from the preceding
-   * call to this method. `page_token` must be the value of `next_page_token`
-   * from the previous response. The values of all other method parameters must
-   * be identical to those in the previous call.
+   * Optional. If present, retrieve the next batch of results from the preceding call to
+   * this method. `page_token` must be the value of `next_page_token` from the
+   * previous response. The values of all other method parameters must be
+   * identical to those in the previous call.
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java index 6d484819b..334e53af5 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java @@ -161,13 +161,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the resources within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the resources within the `scope`. The caller must be granted the
+   * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -190,13 +192,15 @@ public java.lang.String getScope() { * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the resources within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the resources within the `scope`. The caller must be granted the
+   * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -222,35 +226,39 @@ public com.google.protobuf.ByteString getScopeBytes() { * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the resources of certain `asset_types` within the given `scope`.
+   * Optional. The query statement. See [how to construct a
+   * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+   * for more information. If not specified or empty, it will search all the
+   * resources within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its members,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see [IAM policy
+   * doc](https://cloud.google.com/iam/docs/policies#structure).
    * Examples:
-   * * `name : "Important"` to find Cloud resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `displayName : "Impor*"` to find Cloud resources whose display name
-   *   contains "Impor" as a word prefix.
-   * * `description : "*por*"` to find Cloud resources whose description
+   * * `displayName:Impor*` to find Cloud resources whose display name
+   *   contains "Impor" as a prefix.
+   * * `description:*por*` to find Cloud resources whose description
    *   contains "por" as a substring.
-   * * `location : "us-west*"` to find Cloud resources whose location is
+   * * `location:us-west*` to find Cloud resources whose location is
    *   prefixed with "us-west".
-   * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env : *` to find Cloud resources which have a label "env".
-   * * `"Important"` to find Cloud resources which contain "Important" as a word
+   * * `labels.env:*` to find Cloud resources that have a label "env".
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
    *   in any of the searchable fields.
-   * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+   * * `*por*` to find Cloud resources that contain "por" as a substring in
    *   any of the searchable fields.
-   * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-   *   resources which contain "Important" as a word in any of the searchable
+   * * `Important location:(us-west1 OR global)` to find Cloud
+   *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
-   * See [how to construct a
-   * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-   * for more details.
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -273,35 +281,39 @@ public java.lang.String getQuery() { * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the resources of certain `asset_types` within the given `scope`.
+   * Optional. The query statement. See [how to construct a
+   * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+   * for more information. If not specified or empty, it will search all the
+   * resources within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its members,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see [IAM policy
+   * doc](https://cloud.google.com/iam/docs/policies#structure).
    * Examples:
-   * * `name : "Important"` to find Cloud resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `displayName : "Impor*"` to find Cloud resources whose display name
-   *   contains "Impor" as a word prefix.
-   * * `description : "*por*"` to find Cloud resources whose description
+   * * `displayName:Impor*` to find Cloud resources whose display name
+   *   contains "Impor" as a prefix.
+   * * `description:*por*` to find Cloud resources whose description
    *   contains "por" as a substring.
-   * * `location : "us-west*"` to find Cloud resources whose location is
+   * * `location:us-west*` to find Cloud resources whose location is
    *   prefixed with "us-west".
-   * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env : *` to find Cloud resources which have a label "env".
-   * * `"Important"` to find Cloud resources which contain "Important" as a word
+   * * `labels.env:*` to find Cloud resources that have a label "env".
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
    *   in any of the searchable fields.
-   * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+   * * `*por*` to find Cloud resources that contain "por" as a substring in
    *   any of the searchable fields.
-   * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-   *   resources which contain "Important" as a word in any of the searchable
+   * * `Important location:(us-west1 OR global)` to find Cloud
+   *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
-   * See [how to construct a
-   * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-   * for more details.
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -327,8 +339,8 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -343,8 +355,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -359,8 +371,8 @@ public int getAssetTypesCount() { * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -376,8 +388,8 @@ public java.lang.String getAssetTypes(int index) { * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -396,11 +408,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * *
-   * Optional. The page size for search result pagination. Page size is capped
-   * at 500 even if a larger value is given. If set to zero, server will pick an
-   * appropriate default. Returned results may be fewer than requested. When
-   * this happens, there could be more results as long as `next_page_token` is
-   * returned.
+   * Optional. The page size for search result pagination. Page size is capped at 500 even
+   * if a larger value is given. If set to zero, server will pick an appropriate
+   * default. Returned results may be fewer than requested. When this happens,
+   * there could be more results as long as `next_page_token` is returned.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -418,10 +429,10 @@ public int getPageSize() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `page_token` must be the value of
-   * `next_page_token` from the previous response. The values of all other
-   * method parameters, must be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `page_token` must be the value of `next_page_token` from
+   * the previous response. The values of all other method parameters, must be
+   * identical to those in the previous call.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -444,10 +455,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `page_token` must be the value of
-   * `next_page_token` from the previous response. The values of all other
-   * method parameters, must be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `page_token` must be the value of `next_page_token` from
+   * the previous response. The values of all other method parameters, must be
+   * identical to those in the previous call.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -473,12 +484,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. A comma separated list of fields specifying the sorting order of
-   * the results. The default order is ascending. Add " DESC" after the field
-   * name to indicate descending order. Redundant space characters are ignored.
-   * Example: "location DESC, name". See [supported resource metadata
-   * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-   * for more details.
+   * Optional. A comma separated list of fields specifying the sorting order of the
+   * results. The default order is ascending. Add " DESC" after the field name
+   * to indicate descending order. Redundant space characters are ignored.
+   * Example: "location DESC, name". Only string fields in the response are
+   * sortable, including `name`, `displayName`, `description`, `location`. All
+   * the other fields such as repeated fields (e.g., `networkTags`), map
+   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+   * are not supported.
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -501,12 +514,14 @@ public java.lang.String getOrderBy() { * * *
-   * Optional. A comma separated list of fields specifying the sorting order of
-   * the results. The default order is ascending. Add " DESC" after the field
-   * name to indicate descending order. Redundant space characters are ignored.
-   * Example: "location DESC, name". See [supported resource metadata
-   * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-   * for more details.
+   * Optional. A comma separated list of fields specifying the sorting order of the
+   * results. The default order is ascending. Add " DESC" after the field name
+   * to indicate descending order. Redundant space characters are ignored.
+   * Example: "location DESC, name". Only string fields in the response are
+   * sortable, including `name`, `displayName`, `description`, `location`. All
+   * the other fields such as repeated fields (e.g., `networkTags`), map
+   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+   * are not supported.
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -948,13 +963,15 @@ public Builder mergeFrom( * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the resources within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the resources within the `scope`. The caller must be granted the
+     * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -976,13 +993,15 @@ public java.lang.String getScope() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the resources within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the resources within the `scope`. The caller must be granted the
+     * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1004,13 +1023,15 @@ public com.google.protobuf.ByteString getScopeBytes() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the resources within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the resources within the `scope`. The caller must be granted the
+     * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1031,13 +1052,15 @@ public Builder setScope(java.lang.String value) { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the resources within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the resources within the `scope`. The caller must be granted the
+     * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,13 +1077,15 @@ public Builder clearScope() { * * *
-     * Required. A scope can be a project, a folder or an organization. The search
-     * is limited to the resources within the `scope`.
+     * Required. A scope can be a project, a folder, or an organization. The search is
+     * limited to the resources within the `scope`. The caller must be granted the
+     * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+     * permission on the desired scope.
      * The allowed values are:
-     * * projects/{PROJECT_ID}
-     * * projects/{PROJECT_NUMBER}
-     * * folders/{FOLDER_NUMBER}
-     * * organizations/{ORGANIZATION_NUMBER}
+     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
      * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1084,35 +1109,39 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the resources of certain `asset_types` within the given `scope`.
+     * Optional. The query statement. See [how to construct a
+     * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+     * for more information. If not specified or empty, it will search all the
+     * resources within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its members,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see [IAM policy
+     * doc](https://cloud.google.com/iam/docs/policies#structure).
      * Examples:
-     * * `name : "Important"` to find Cloud resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `displayName : "Impor*"` to find Cloud resources whose display name
-     *   contains "Impor" as a word prefix.
-     * * `description : "*por*"` to find Cloud resources whose description
+     * * `displayName:Impor*` to find Cloud resources whose display name
+     *   contains "Impor" as a prefix.
+     * * `description:*por*` to find Cloud resources whose description
      *   contains "por" as a substring.
-     * * `location : "us-west*"` to find Cloud resources whose location is
+     * * `location:us-west*` to find Cloud resources whose location is
      *   prefixed with "us-west".
-     * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env : *` to find Cloud resources which have a label "env".
-     * * `"Important"` to find Cloud resources which contain "Important" as a word
+     * * `labels.env:*` to find Cloud resources that have a label "env".
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
      *   in any of the searchable fields.
-     * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+     * * `*por*` to find Cloud resources that contain "por" as a substring in
      *   any of the searchable fields.
-     * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-     *   resources which contain "Important" as a word in any of the searchable
+     * * `Important location:(us-west1 OR global)` to find Cloud
+     *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
-     * See [how to construct a
-     * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-     * for more details.
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1134,35 +1163,39 @@ public java.lang.String getQuery() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the resources of certain `asset_types` within the given `scope`.
+     * Optional. The query statement. See [how to construct a
+     * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+     * for more information. If not specified or empty, it will search all the
+     * resources within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its members,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see [IAM policy
+     * doc](https://cloud.google.com/iam/docs/policies#structure).
      * Examples:
-     * * `name : "Important"` to find Cloud resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `displayName : "Impor*"` to find Cloud resources whose display name
-     *   contains "Impor" as a word prefix.
-     * * `description : "*por*"` to find Cloud resources whose description
+     * * `displayName:Impor*` to find Cloud resources whose display name
+     *   contains "Impor" as a prefix.
+     * * `description:*por*` to find Cloud resources whose description
      *   contains "por" as a substring.
-     * * `location : "us-west*"` to find Cloud resources whose location is
+     * * `location:us-west*` to find Cloud resources whose location is
      *   prefixed with "us-west".
-     * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env : *` to find Cloud resources which have a label "env".
-     * * `"Important"` to find Cloud resources which contain "Important" as a word
+     * * `labels.env:*` to find Cloud resources that have a label "env".
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
      *   in any of the searchable fields.
-     * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+     * * `*por*` to find Cloud resources that contain "por" as a substring in
      *   any of the searchable fields.
-     * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-     *   resources which contain "Important" as a word in any of the searchable
+     * * `Important location:(us-west1 OR global)` to find Cloud
+     *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
-     * See [how to construct a
-     * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-     * for more details.
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1184,35 +1217,39 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the resources of certain `asset_types` within the given `scope`.
+     * Optional. The query statement. See [how to construct a
+     * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+     * for more information. If not specified or empty, it will search all the
+     * resources within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its members,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see [IAM policy
+     * doc](https://cloud.google.com/iam/docs/policies#structure).
      * Examples:
-     * * `name : "Important"` to find Cloud resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `displayName : "Impor*"` to find Cloud resources whose display name
-     *   contains "Impor" as a word prefix.
-     * * `description : "*por*"` to find Cloud resources whose description
+     * * `displayName:Impor*` to find Cloud resources whose display name
+     *   contains "Impor" as a prefix.
+     * * `description:*por*` to find Cloud resources whose description
      *   contains "por" as a substring.
-     * * `location : "us-west*"` to find Cloud resources whose location is
+     * * `location:us-west*` to find Cloud resources whose location is
      *   prefixed with "us-west".
-     * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env : *` to find Cloud resources which have a label "env".
-     * * `"Important"` to find Cloud resources which contain "Important" as a word
+     * * `labels.env:*` to find Cloud resources that have a label "env".
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
      *   in any of the searchable fields.
-     * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+     * * `*por*` to find Cloud resources that contain "por" as a substring in
      *   any of the searchable fields.
-     * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-     *   resources which contain "Important" as a word in any of the searchable
+     * * `Important location:(us-west1 OR global)` to find Cloud
+     *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
-     * See [how to construct a
-     * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-     * for more details.
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1233,35 +1270,39 @@ public Builder setQuery(java.lang.String value) { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the resources of certain `asset_types` within the given `scope`.
+     * Optional. The query statement. See [how to construct a
+     * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+     * for more information. If not specified or empty, it will search all the
+     * resources within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its members,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see [IAM policy
+     * doc](https://cloud.google.com/iam/docs/policies#structure).
      * Examples:
-     * * `name : "Important"` to find Cloud resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `displayName : "Impor*"` to find Cloud resources whose display name
-     *   contains "Impor" as a word prefix.
-     * * `description : "*por*"` to find Cloud resources whose description
+     * * `displayName:Impor*` to find Cloud resources whose display name
+     *   contains "Impor" as a prefix.
+     * * `description:*por*` to find Cloud resources whose description
      *   contains "por" as a substring.
-     * * `location : "us-west*"` to find Cloud resources whose location is
+     * * `location:us-west*` to find Cloud resources whose location is
      *   prefixed with "us-west".
-     * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env : *` to find Cloud resources which have a label "env".
-     * * `"Important"` to find Cloud resources which contain "Important" as a word
+     * * `labels.env:*` to find Cloud resources that have a label "env".
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
      *   in any of the searchable fields.
-     * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+     * * `*por*` to find Cloud resources that contain "por" as a substring in
      *   any of the searchable fields.
-     * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-     *   resources which contain "Important" as a word in any of the searchable
+     * * `Important location:(us-west1 OR global)` to find Cloud
+     *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
-     * See [how to construct a
-     * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-     * for more details.
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1278,35 +1319,39 @@ public Builder clearQuery() { * * *
-     * Optional. The query statement. An empty query can be specified to search
-     * all the resources of certain `asset_types` within the given `scope`.
+     * Optional. The query statement. See [how to construct a
+     * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+     * for more information. If not specified or empty, it will search all the
+     * resources within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its members,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see [IAM policy
+     * doc](https://cloud.google.com/iam/docs/policies#structure).
      * Examples:
-     * * `name : "Important"` to find Cloud resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `displayName : "Impor*"` to find Cloud resources whose display name
-     *   contains "Impor" as a word prefix.
-     * * `description : "*por*"` to find Cloud resources whose description
+     * * `displayName:Impor*` to find Cloud resources whose display name
+     *   contains "Impor" as a prefix.
+     * * `description:*por*` to find Cloud resources whose description
      *   contains "por" as a substring.
-     * * `location : "us-west*"` to find Cloud resources whose location is
+     * * `location:us-west*` to find Cloud resources whose location is
      *   prefixed with "us-west".
-     * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env : *` to find Cloud resources which have a label "env".
-     * * `"Important"` to find Cloud resources which contain "Important" as a word
+     * * `labels.env:*` to find Cloud resources that have a label "env".
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
      *   in any of the searchable fields.
-     * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+     * * `*por*` to find Cloud resources that contain "por" as a substring in
      *   any of the searchable fields.
-     * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-     *   resources which contain "Important" as a word in any of the searchable
+     * * `Important location:(us-west1 OR global)` to find Cloud
+     *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
-     * See [how to construct a
-     * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-     * for more details.
      * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1338,8 +1383,8 @@ private void ensureAssetTypesIsMutable() { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1354,8 +1399,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1370,8 +1415,8 @@ public int getAssetTypesCount() { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1387,8 +1432,8 @@ public java.lang.String getAssetTypes(int index) { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1404,8 +1449,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1428,8 +1473,8 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1451,8 +1496,8 @@ public Builder addAssetTypes(java.lang.String value) { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1471,8 +1516,8 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1490,8 +1535,8 @@ public Builder clearAssetTypes() { * * *
-     * Optional. A list of asset types that this request searches for. If empty,
-     * it will search all the [searchable asset
+     * Optional. A list of asset types that this request searches for. If empty, it will
+     * search all the [searchable asset
      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
      * 
* @@ -1516,11 +1561,10 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1535,11 +1579,10 @@ public int getPageSize() { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1557,11 +1600,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The page size for search result pagination. Page size is capped
-     * at 500 even if a larger value is given. If set to zero, server will pick an
-     * appropriate default. Returned results may be fewer than requested. When
-     * this happens, there could be more results as long as `next_page_token` is
-     * returned.
+     * Optional. The page size for search result pagination. Page size is capped at 500 even
+     * if a larger value is given. If set to zero, server will pick an appropriate
+     * default. Returned results may be fewer than requested. When this happens,
+     * there could be more results as long as `next_page_token` is returned.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1580,10 +1622,10 @@ public Builder clearPageSize() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `page_token` must be the value of
-     * `next_page_token` from the previous response. The values of all other
-     * method parameters, must be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `page_token` must be the value of `next_page_token` from
+     * the previous response. The values of all other method parameters, must be
+     * identical to those in the previous call.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1605,10 +1647,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `page_token` must be the value of
-     * `next_page_token` from the previous response. The values of all other
-     * method parameters, must be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `page_token` must be the value of `next_page_token` from
+     * the previous response. The values of all other method parameters, must be
+     * identical to those in the previous call.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1630,10 +1672,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `page_token` must be the value of
-     * `next_page_token` from the previous response. The values of all other
-     * method parameters, must be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `page_token` must be the value of `next_page_token` from
+     * the previous response. The values of all other method parameters, must be
+     * identical to those in the previous call.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1654,10 +1696,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `page_token` must be the value of
-     * `next_page_token` from the previous response. The values of all other
-     * method parameters, must be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `page_token` must be the value of `next_page_token` from
+     * the previous response. The values of all other method parameters, must be
+     * identical to those in the previous call.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1674,10 +1716,10 @@ public Builder clearPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `page_token` must be the value of
-     * `next_page_token` from the previous response. The values of all other
-     * method parameters, must be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `page_token` must be the value of `next_page_token` from
+     * the previous response. The values of all other method parameters, must be
+     * identical to those in the previous call.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1701,12 +1743,14 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A comma separated list of fields specifying the sorting order of
-     * the results. The default order is ascending. Add " DESC" after the field
-     * name to indicate descending order. Redundant space characters are ignored.
-     * Example: "location DESC, name". See [supported resource metadata
-     * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-     * for more details.
+     * Optional. A comma separated list of fields specifying the sorting order of the
+     * results. The default order is ascending. Add " DESC" after the field name
+     * to indicate descending order. Redundant space characters are ignored.
+     * Example: "location DESC, name". Only string fields in the response are
+     * sortable, including `name`, `displayName`, `description`, `location`. All
+     * the other fields such as repeated fields (e.g., `networkTags`), map
+     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+     * are not supported.
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1728,12 +1772,14 @@ public java.lang.String getOrderBy() { * * *
-     * Optional. A comma separated list of fields specifying the sorting order of
-     * the results. The default order is ascending. Add " DESC" after the field
-     * name to indicate descending order. Redundant space characters are ignored.
-     * Example: "location DESC, name". See [supported resource metadata
-     * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-     * for more details.
+     * Optional. A comma separated list of fields specifying the sorting order of the
+     * results. The default order is ascending. Add " DESC" after the field name
+     * to indicate descending order. Redundant space characters are ignored.
+     * Example: "location DESC, name". Only string fields in the response are
+     * sortable, including `name`, `displayName`, `description`, `location`. All
+     * the other fields such as repeated fields (e.g., `networkTags`), map
+     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+     * are not supported.
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1755,12 +1801,14 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-     * Optional. A comma separated list of fields specifying the sorting order of
-     * the results. The default order is ascending. Add " DESC" after the field
-     * name to indicate descending order. Redundant space characters are ignored.
-     * Example: "location DESC, name". See [supported resource metadata
-     * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-     * for more details.
+     * Optional. A comma separated list of fields specifying the sorting order of the
+     * results. The default order is ascending. Add " DESC" after the field name
+     * to indicate descending order. Redundant space characters are ignored.
+     * Example: "location DESC, name". Only string fields in the response are
+     * sortable, including `name`, `displayName`, `description`, `location`. All
+     * the other fields such as repeated fields (e.g., `networkTags`), map
+     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+     * are not supported.
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1781,12 +1829,14 @@ public Builder setOrderBy(java.lang.String value) { * * *
-     * Optional. A comma separated list of fields specifying the sorting order of
-     * the results. The default order is ascending. Add " DESC" after the field
-     * name to indicate descending order. Redundant space characters are ignored.
-     * Example: "location DESC, name". See [supported resource metadata
-     * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-     * for more details.
+     * Optional. A comma separated list of fields specifying the sorting order of the
+     * results. The default order is ascending. Add " DESC" after the field name
+     * to indicate descending order. Redundant space characters are ignored.
+     * Example: "location DESC, name". Only string fields in the response are
+     * sortable, including `name`, `displayName`, `description`, `location`. All
+     * the other fields such as repeated fields (e.g., `networkTags`), map
+     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+     * are not supported.
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1803,12 +1853,14 @@ public Builder clearOrderBy() { * * *
-     * Optional. A comma separated list of fields specifying the sorting order of
-     * the results. The default order is ascending. Add " DESC" after the field
-     * name to indicate descending order. Redundant space characters are ignored.
-     * Example: "location DESC, name". See [supported resource metadata
-     * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-     * for more details.
+     * Optional. A comma separated list of fields specifying the sorting order of the
+     * results. The default order is ascending. Add " DESC" after the field name
+     * to indicate descending order. Redundant space characters are ignored.
+     * Example: "location DESC, name". Only string fields in the response are
+     * sortable, including `name`, `displayName`, `description`, `location`. All
+     * the other fields such as repeated fields (e.g., `networkTags`), map
+     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+     * are not supported.
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java index 27994f1db..9a1e3068e 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java @@ -27,13 +27,15 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the resources within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the resources within the `scope`. The caller must be granted the
+   * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,13 +47,15 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Required. A scope can be a project, a folder or an organization. The search
-   * is limited to the resources within the `scope`.
+   * Required. A scope can be a project, a folder, or an organization. The search is
+   * limited to the resources within the `scope`. The caller must be granted the
+   * [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+   * permission on the desired scope.
    * The allowed values are:
-   * * projects/{PROJECT_ID}
-   * * projects/{PROJECT_NUMBER}
-   * * folders/{FOLDER_NUMBER}
-   * * organizations/{ORGANIZATION_NUMBER}
+   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -64,35 +68,39 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the resources of certain `asset_types` within the given `scope`.
+   * Optional. The query statement. See [how to construct a
+   * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+   * for more information. If not specified or empty, it will search all the
+   * resources within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its members,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see [IAM policy
+   * doc](https://cloud.google.com/iam/docs/policies#structure).
    * Examples:
-   * * `name : "Important"` to find Cloud resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `displayName : "Impor*"` to find Cloud resources whose display name
-   *   contains "Impor" as a word prefix.
-   * * `description : "*por*"` to find Cloud resources whose description
+   * * `displayName:Impor*` to find Cloud resources whose display name
+   *   contains "Impor" as a prefix.
+   * * `description:*por*` to find Cloud resources whose description
    *   contains "por" as a substring.
-   * * `location : "us-west*"` to find Cloud resources whose location is
+   * * `location:us-west*` to find Cloud resources whose location is
    *   prefixed with "us-west".
-   * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env : *` to find Cloud resources which have a label "env".
-   * * `"Important"` to find Cloud resources which contain "Important" as a word
+   * * `labels.env:*` to find Cloud resources that have a label "env".
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
    *   in any of the searchable fields.
-   * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+   * * `*por*` to find Cloud resources that contain "por" as a substring in
    *   any of the searchable fields.
-   * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-   *   resources which contain "Important" as a word in any of the searchable
+   * * `Important location:(us-west1 OR global)` to find Cloud
+   *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
-   * See [how to construct a
-   * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-   * for more details.
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -104,35 +112,39 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. The query statement. An empty query can be specified to search
-   * all the resources of certain `asset_types` within the given `scope`.
+   * Optional. The query statement. See [how to construct a
+   * query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+   * for more information. If not specified or empty, it will search all the
+   * resources within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its members,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see [IAM policy
+   * doc](https://cloud.google.com/iam/docs/policies#structure).
    * Examples:
-   * * `name : "Important"` to find Cloud resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `displayName : "Impor*"` to find Cloud resources whose display name
-   *   contains "Impor" as a word prefix.
-   * * `description : "*por*"` to find Cloud resources whose description
+   * * `displayName:Impor*` to find Cloud resources whose display name
+   *   contains "Impor" as a prefix.
+   * * `description:*por*` to find Cloud resources whose description
    *   contains "por" as a substring.
-   * * `location : "us-west*"` to find Cloud resources whose location is
+   * * `location:us-west*` to find Cloud resources whose location is
    *   prefixed with "us-west".
-   * * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env : "prod"` to find Cloud resources which have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env : *` to find Cloud resources which have a label "env".
-   * * `"Important"` to find Cloud resources which contain "Important" as a word
+   * * `labels.env:*` to find Cloud resources that have a label "env".
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix
    *   in any of the searchable fields.
-   * * `"*por*"` to find Cloud resources which contain "por" as a substring in
+   * * `*por*` to find Cloud resources that contain "por" as a substring in
    *   any of the searchable fields.
-   * * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-   *   resources which contain "Important" as a word in any of the searchable
+   * * `Important location:(us-west1 OR global)` to find Cloud
+   *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
-   * See [how to construct a
-   * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-   * for more details.
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -145,8 +157,8 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -159,8 +171,8 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -173,8 +185,8 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -188,8 +200,8 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A list of asset types that this request searches for. If empty,
-   * it will search all the [searchable asset
+   * Optional. A list of asset types that this request searches for. If empty, it will
+   * search all the [searchable asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
    * 
* @@ -204,11 +216,10 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. The page size for search result pagination. Page size is capped
-   * at 500 even if a larger value is given. If set to zero, server will pick an
-   * appropriate default. Returned results may be fewer than requested. When
-   * this happens, there could be more results as long as `next_page_token` is
-   * returned.
+   * Optional. The page size for search result pagination. Page size is capped at 500 even
+   * if a larger value is given. If set to zero, server will pick an appropriate
+   * default. Returned results may be fewer than requested. When this happens,
+   * there could be more results as long as `next_page_token` is returned.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -221,10 +232,10 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `page_token` must be the value of
-   * `next_page_token` from the previous response. The values of all other
-   * method parameters, must be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `page_token` must be the value of `next_page_token` from
+   * the previous response. The values of all other method parameters, must be
+   * identical to those in the previous call.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -236,10 +247,10 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `page_token` must be the value of
-   * `next_page_token` from the previous response. The values of all other
-   * method parameters, must be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `page_token` must be the value of `next_page_token` from
+   * the previous response. The values of all other method parameters, must be
+   * identical to those in the previous call.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -252,12 +263,14 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A comma separated list of fields specifying the sorting order of
-   * the results. The default order is ascending. Add " DESC" after the field
-   * name to indicate descending order. Redundant space characters are ignored.
-   * Example: "location DESC, name". See [supported resource metadata
-   * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-   * for more details.
+   * Optional. A comma separated list of fields specifying the sorting order of the
+   * results. The default order is ascending. Add " DESC" after the field name
+   * to indicate descending order. Redundant space characters are ignored.
+   * Example: "location DESC, name". Only string fields in the response are
+   * sortable, including `name`, `displayName`, `description`, `location`. All
+   * the other fields such as repeated fields (e.g., `networkTags`), map
+   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+   * are not supported.
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -269,12 +282,14 @@ public interface SearchAllResourcesRequestOrBuilder * * *
-   * Optional. A comma separated list of fields specifying the sorting order of
-   * the results. The default order is ascending. Add " DESC" after the field
-   * name to indicate descending order. Redundant space characters are ignored.
-   * Example: "location DESC, name". See [supported resource metadata
-   * fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-   * for more details.
+   * Optional. A comma separated list of fields specifying the sorting order of the
+   * results. The default order is ascending. Add " DESC" after the field name
+   * to indicate descending order. Redundant space characters are ignored.
+   * Example: "location DESC, name". Only string fields in the response are
+   * sortable, including `name`, `displayName`, `description`, `location`. All
+   * the other fields such as repeated fields (e.g., `networkTags`), map
+   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+   * are not supported.
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java index 456e10245..55503a280 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java @@ -137,8 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
@@ -156,8 +156,8 @@ public boolean hasFeed() {
    *
    *
    * 
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
@@ -175,8 +175,8 @@ public com.google.cloud.asset.v1.Feed getFeed() {
    *
    *
    * 
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
@@ -610,8 +610,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -628,8 +628,8 @@ public boolean hasFeed() {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -650,8 +650,8 @@ public com.google.cloud.asset.v1.Feed getFeed() {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -676,8 +676,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -699,8 +699,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -726,8 +726,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -750,8 +750,8 @@ public Builder clearFeed() {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -768,8 +768,8 @@ public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
@@ -788,8 +788,8 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
      *
      *
      * 
-     * Required. The new values of feed details. It must match an existing feed
-     * and the field `name` must be in the format of:
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
      * projects/project_number/feeds/feed_id or
      * folders/folder_number/feeds/feed_id or
      * organizations/organization_number/feeds/feed_id.
diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
index d6cac469d..fe7ebbc66 100644
--- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
+++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface UpdateFeedRequestOrBuilder
    *
    *
    * 
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
@@ -43,8 +43,8 @@ public interface UpdateFeedRequestOrBuilder
    *
    *
    * 
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
@@ -59,8 +59,8 @@ public interface UpdateFeedRequestOrBuilder
    *
    *
    * 
-   * Required. The new values of feed details. It must match an existing feed
-   * and the field `name` must be in the format of:
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
    * projects/project_number/feeds/feed_id or
    * folders/folder_number/feeds/feed_id or
    * organizations/organization_number/feeds/feed_id.
diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
index db3ca4123..4aa3ee74e 100644
--- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
+++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
@@ -38,20 +38,18 @@ option php_namespace = "Google\\Cloud\\Asset\\V1";
 // Asset service definition.
 service AssetService {
   option (google.api.default_host) = "cloudasset.googleapis.com";
-  option (google.api.oauth_scopes) =
-      "https://www.googleapis.com/auth/cloud-platform";
+  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
 
   // Exports assets with time and resource types to a given Cloud Storage
   // location/BigQuery table. For Cloud Storage location destinations, the
   // output format is newline-delimited JSON. Each line represents a
-  // [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
-  // format; for BigQuery table destinations, the output table stores the fields
-  // in asset proto as columns. This API implements the
-  // [google.longrunning.Operation][google.longrunning.Operation] API , which
-  // allows you to keep track of the export. We recommend intervals of at least
-  // 2 seconds with exponential retry to poll the export operation result. For
-  // regular-size resource parent, the export operation usually finishes within
-  // 5 minutes.
+  // [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
+  // destinations, the output table stores the fields in asset proto as columns.
+  // This API implements the [google.longrunning.Operation][google.longrunning.Operation] API
+  // , which allows you to keep track of the export. We recommend intervals of
+  // at least 2 seconds with exponential retry to poll the export operation
+  // result. For regular-size resource parent, the export operation usually
+  // finishes within 5 minutes.
   rpc ExportAssets(ExportAssetsRequest) returns (google.longrunning.Operation) {
     option (google.api.http) = {
       post: "/v1/{parent=*/*}:exportAssets"
@@ -70,8 +68,7 @@ service AssetService {
   // deleted status.
   // If a specified asset does not exist, this API returns an INVALID_ARGUMENT
   // error.
-  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest)
-      returns (BatchGetAssetsHistoryResponse) {
+  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest) returns (BatchGetAssetsHistoryResponse) {
     option (google.api.http) = {
       get: "/v1/{parent=*/*}:batchGetAssetsHistory"
     };
@@ -120,24 +117,22 @@ service AssetService {
     option (google.api.method_signature) = "name";
   }
 
-  // Searches all the resources within the given accessible scope (e.g., a
-  // project, a folder or an organization). Callers should have
-  // cloud.assets.SearchAllResources permission upon the requested scope,
+  // Searches all Cloud resources within the specified scope, such as a project,
+  // folder, or organization. The caller must be granted the
+  // `cloudasset.assets.searchAllResources` permission on the desired scope,
   // otherwise the request will be rejected.
-  rpc SearchAllResources(SearchAllResourcesRequest)
-      returns (SearchAllResourcesResponse) {
+  rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) {
     option (google.api.http) = {
       get: "/v1/{scope=*/*}:searchAllResources"
     };
     option (google.api.method_signature) = "scope,query,asset_types";
   }
 
-  // Searches all the IAM policies within the given accessible scope (e.g., a
-  // project, a folder or an organization). Callers should have
-  // cloud.assets.SearchAllIamPolicies permission upon the requested scope,
+  // Searches all IAM policies within the specified scope, such as a project,
+  // folder, or organization. The caller must be granted the
+  // `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
   // otherwise the request will be rejected.
-  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest)
-      returns (SearchAllIamPoliciesResponse) {
+  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) {
     option (google.api.http) = {
       get: "/v1/{scope=*/*}:searchAllIamPolicies"
     };
@@ -165,9 +160,22 @@ message ExportAssetsRequest {
   // running the same query may get different results.
   google.protobuf.Timestamp read_time = 2;
 
-  // A list of asset types of which to take a snapshot for. Example:
-  // "compute.googleapis.com/Disk". If specified, only matching assets will be
-  // returned. See [Introduction to Cloud Asset
+  // A list of asset types to take a snapshot for. For example:
+  // "compute.googleapis.com/Disk".
+  //
+  // Regular expressions are also supported. For example:
+  //
+  // * "compute.googleapis.com.*" snapshots resources whose asset type starts
+  // with "compute.googleapis.com".
+  // * ".*Instance" snapshots resources whose asset type ends with "Instance".
+  // * ".*Instance.*" snapshots resources whose asset type contains "Instance".
+  //
+  // See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
+  // regular expression syntax. If the regular expression does not match any
+  // supported asset type, an INVALID_ARGUMENT error will be returned.
+  //
+  // If specified, only matching assets will be returned, otherwise, it will
+  // snapshot all asset types. See [Introduction to Cloud Asset
   // Inventory](https://cloud.google.com/asset-inventory/docs/overview)
   // for all supported asset types.
   repeated string asset_types = 3;
@@ -176,22 +184,26 @@ message ExportAssetsRequest {
   // returned.
   ContentType content_type = 4;
 
-  // Required. Output configuration indicating where the results will be output
-  // to.
+  // Required. Output configuration indicating where the results will be output to.
   OutputConfig output_config = 5 [(google.api.field_behavior) = REQUIRED];
 }
 
 // The export asset response. This message is returned by the
-// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
-// method in the returned
-// [google.longrunning.Operation.response][google.longrunning.Operation.response]
-// field.
+// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
+// [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
 message ExportAssetsResponse {
   // Time the snapshot was taken.
   google.protobuf.Timestamp read_time = 1;
 
   // Output configuration indicating where the results were output to.
   OutputConfig output_config = 2;
+
+  // Output result indicating where the assets were exported to. For example, a
+  // set of actual Google Cloud Storage object uris where the assets are
+  // exported to. The uris can be different from what [output_config] has
+  // specified, as the service will split the output object into multiple ones
+  // once it exceeds a single Google Cloud Storage object limit.
+  OutputResult output_result = 3;
 }
 
 // Batch get assets history request.
@@ -247,8 +259,9 @@ message CreateFeedRequest {
   // be unique under a specific parent project/folder/organization.
   string feed_id = 2 [(google.api.field_behavior) = REQUIRED];
 
-  // Required. The feed details. The field `name` must be empty and it will be
-  // generated in the format of: projects/project_number/feeds/feed_id
+  // Required. The feed details. The field `name` must be empty and it will be generated
+  // in the format of:
+  // projects/project_number/feeds/feed_id
   // folders/folder_number/feeds/feed_id
   // organizations/organization_number/feeds/feed_id
   Feed feed = 3 [(google.api.field_behavior) = REQUIRED];
@@ -262,7 +275,9 @@ message GetFeedRequest {
   // organizations/organization_number/feeds/feed_id
   string name = 1 [
     (google.api.field_behavior) = REQUIRED,
-    (google.api.resource_reference) = { type: "cloudasset.googleapis.com/Feed" }
+    (google.api.resource_reference) = {
+      type: "cloudasset.googleapis.com/Feed"
+    }
   ];
 }
 
@@ -281,8 +296,8 @@ message ListFeedsResponse {
 
 // Update asset feed request.
 message UpdateFeedRequest {
-  // Required. The new values of feed details. It must match an existing feed
-  // and the field `name` must be in the format of:
+  // Required. The new values of feed details. It must match an existing feed and the
+  // field `name` must be in the format of:
   // projects/project_number/feeds/feed_id or
   // folders/folder_number/feeds/feed_id or
   // organizations/organization_number/feeds/feed_id.
@@ -291,8 +306,7 @@ message UpdateFeedRequest {
   // Required. Only updates the `feed` fields indicated by this mask.
   // The field mask must not be empty, and it must not contain fields that
   // are immutable or only set by the server.
-  google.protobuf.FieldMask update_mask = 2
-      [(google.api.field_behavior) = REQUIRED];
+  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
 }
 
 message DeleteFeedRequest {
@@ -302,7 +316,9 @@ message DeleteFeedRequest {
   // organizations/organization_number/feeds/feed_id
   string name = 1 [
     (google.api.field_behavior) = REQUIRED,
-    (google.api.resource_reference) = { type: "cloudasset.googleapis.com/Feed" }
+    (google.api.resource_reference) = {
+      type: "cloudasset.googleapis.com/Feed"
+    }
   ];
 }
 
@@ -319,6 +335,22 @@ message OutputConfig {
   }
 }
 
+// Output result of export assets.
+message OutputResult {
+  // Asset export result.
+  oneof result {
+    // Export result on Cloud Storage.
+    GcsOutputResult gcs_result = 1;
+  }
+}
+
+// A Cloud Storage output result.
+message GcsOutputResult {
+  // List of uris of the Cloud Storage objects. Example:
+  // "gs://bucket_name/object_name".
+  repeated string uris = 1;
+}
+
 // A Cloud Storage location.
 message GcsDestination {
   // Required.
@@ -428,8 +460,7 @@ message Feed {
 
   // Required. Feed output configuration defining where the asset updates are
   // published to.
-  FeedOutputConfig feed_output_config = 5
-      [(google.api.field_behavior) = REQUIRED];
+  FeedOutputConfig feed_output_config = 5 [(google.api.field_behavior) = REQUIRED];
 
   // A condition which determines whether an asset update should be published.
   // If specified, an asset will be returned only when the expression evaluates
@@ -437,82 +468,92 @@ message Feed {
   // When set, `expression` field in the `Expr` must be a valid [CEL expression]
   // (https://github.com/google/cel-spec) on a TemporalAsset with name
   // `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted
-  // == true") will only publish Asset deletions. Other fields in `Expr` are
+  // == true") will only publish Asset deletions. Other fields of `Expr` are
   // optional.
+  //
+  // See our [user
+  // guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition)
+  // for detailed instructions.
   google.type.Expr condition = 6;
 }
 
 // Search all resources request.
 message SearchAllResourcesRequest {
-  // Required. A scope can be a project, a folder or an organization. The search
-  // is limited to the resources within the `scope`.
+  // Required. A scope can be a project, a folder, or an organization. The search is
+  // limited to the resources within the `scope`. The caller must be granted the
+  // [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+  // permission on the desired scope.
   //
   // The allowed values are:
   //
-  // * projects/{PROJECT_ID}
-  // * projects/{PROJECT_NUMBER}
-  // * folders/{FOLDER_NUMBER}
-  // * organizations/{ORGANIZATION_NUMBER}
+  // * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+  // * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+  // * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+  // * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
   string scope = 1 [(google.api.field_behavior) = REQUIRED];
 
-  // Optional. The query statement. An empty query can be specified to search
-  // all the resources of certain `asset_types` within the given `scope`.
+  // Optional. The query statement. See [how to construct a
+  // query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
+  // for more information. If not specified or empty, it will search all the
+  // resources within the specified `scope`. Note that the query string is
+  // compared against each Cloud IAM policy binding, including its members,
+  // roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+  // contain the bindings that match your query. To learn more about the IAM
+  // policy structure, see [IAM policy
+  // doc](https://cloud.google.com/iam/docs/policies#structure).
   //
   // Examples:
   //
-  // * `name : "Important"` to find Cloud resources whose name contains
+  // * `name:Important` to find Cloud resources whose name contains
   //   "Important" as a word.
-  // * `displayName : "Impor*"` to find Cloud resources whose display name
-  //   contains "Impor" as a word prefix.
-  // * `description : "*por*"` to find Cloud resources whose description
+  // * `displayName:Impor*` to find Cloud resources whose display name
+  //   contains "Impor" as a prefix.
+  // * `description:*por*` to find Cloud resources whose description
   //   contains "por" as a substring.
-  // * `location : "us-west*"` to find Cloud resources whose location is
+  // * `location:us-west*` to find Cloud resources whose location is
   //   prefixed with "us-west".
-  // * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
+  // * `labels:prod` to find Cloud resources whose labels contain "prod" as
   //   a key or value.
-  // * `labels.env : "prod"` to find Cloud resources which have a label "env"
+  // * `labels.env:prod` to find Cloud resources that have a label "env"
   //   and its value is "prod".
-  // * `labels.env : *` to find Cloud resources which have a label "env".
-  // * `"Important"` to find Cloud resources which contain "Important" as a word
+  // * `labels.env:*` to find Cloud resources that have a label "env".
+  // * `Important` to find Cloud resources that contain "Important" as a word
   //   in any of the searchable fields.
-  // * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
+  // * `Impor*` to find Cloud resources that contain "Impor" as a prefix
   //   in any of the searchable fields.
-  // * `"*por*"` to find Cloud resources which contain "por" as a substring in
+  // * `*por*` to find Cloud resources that contain "por" as a substring in
   //   any of the searchable fields.
-  // * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
-  //   resources which contain "Important" as a word in any of the searchable
+  // * `Important location:(us-west1 OR global)` to find Cloud
+  //   resources that contain "Important" as a word in any of the searchable
   //   fields and are also located in the "us-west1" region or the "global"
   //   location.
-  //
-  // See [how to construct a
-  // query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
-  // for more details.
   string query = 2 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. A list of asset types that this request searches for. If empty,
-  // it will search all the [searchable asset
+  // Optional. A list of asset types that this request searches for. If empty, it will
+  // search all the [searchable asset
   // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
   repeated string asset_types = 3 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. The page size for search result pagination. Page size is capped
-  // at 500 even if a larger value is given. If set to zero, server will pick an
-  // appropriate default. Returned results may be fewer than requested. When
-  // this happens, there could be more results as long as `next_page_token` is
-  // returned.
+  // Optional. The page size for search result pagination. Page size is capped at 500 even
+  // if a larger value is given. If set to zero, server will pick an appropriate
+  // default. Returned results may be fewer than requested. When this happens,
+  // there could be more results as long as `next_page_token` is returned.
   int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. If present, then retrieve the next batch of results from the
-  // preceding call to this method. `page_token` must be the value of
-  // `next_page_token` from the previous response. The values of all other
-  // method parameters, must be identical to those in the previous call.
+  // Optional. If present, then retrieve the next batch of results from the preceding call
+  // to this method. `page_token` must be the value of `next_page_token` from
+  // the previous response. The values of all other method parameters, must be
+  // identical to those in the previous call.
   string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. A comma separated list of fields specifying the sorting order of
-  // the results. The default order is ascending. Add " DESC" after the field
-  // name to indicate descending order. Redundant space characters are ignored.
-  // Example: "location DESC, name". See [supported resource metadata
-  // fields](https://cloud.google.com/asset-inventory/docs/searching-resources#query_on_resource_metadata_fields)
-  // for more details.
+  // Optional. A comma separated list of fields specifying the sorting order of the
+  // results. The default order is ascending. Add " DESC" after the field name
+  // to indicate descending order. Redundant space characters are ignored.
+  // Example: "location DESC, name". Only string fields in the response are
+  // sortable, including `name`, `displayName`, `description`, `location`. All
+  // the other fields such as repeated fields (e.g., `networkTags`), map
+  // fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
+  // are not supported.
   string order_by = 6 [(google.api.field_behavior) = OPTIONAL];
 }
 
@@ -530,51 +571,58 @@ message SearchAllResourcesResponse {
 
 // Search all IAM policies request.
 message SearchAllIamPoliciesRequest {
-  // Required. A scope can be a project, a folder or an organization. The search
-  // is limited to the IAM policies within the `scope`.
+  // Required. A scope can be a project, a folder, or an organization. The search is
+  // limited to the IAM policies within the `scope`. The caller must be granted
+  // the
+  // [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
+  // permission on the desired scope.
   //
   // The allowed values are:
   //
-  // * projects/{PROJECT_ID}
-  // * projects/{PROJECT_NUMBER}
-  // * folders/{FOLDER_NUMBER}
-  // * organizations/{ORGANIZATION_NUMBER}
+  // * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+  // * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+  // * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+  // * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
   string scope = 1 [(google.api.field_behavior) = REQUIRED];
 
-  // Optional. The query statement. An empty query can be specified to search
-  // all the IAM policies within the given `scope`.
+  // Optional. The query statement. See [how to construct a
+  // query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
+  // for more information. If not specified or empty, it will search all the
+  // IAM policies within the specified `scope`.
   //
   // Examples:
   //
-  // * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
-  //   specify user "amy@gmail.com".
-  // * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
-  //   specify the Compute Admin role.
-  // * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
-  //   policy bindings that specify a role containing "storage.buckets.update"
-  //   permission.
-  // * `resource : "organizations/123"` to find Cloud IAM policy bindings that
-  //   are set on "organizations/123".
-  // * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
-  //   to find Cloud IAM policy bindings that are set on "organizations/123" or
-  //   "folders/1234", and also specify user "amy".
-  //
-  // See [how to construct a
-  // query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
-  // for more details.
+  // * `policy:amy@gmail.com` to find IAM policy bindings that specify user
+  //   "amy@gmail.com".
+  // * `policy:roles/compute.admin` to find IAM policy bindings that specify
+  //   the Compute Admin role.
+  // * `policy.role.permissions:storage.buckets.update` to find IAM policy
+  //   bindings that specify a role containing "storage.buckets.update"
+  //   permission. Note that if callers don't have `iam.roles.get` access to a
+  //   role's included permissions, policy bindings that specify this role will
+  //   be dropped from the search results.
+  // * `resource:organizations/123456` to find IAM policy bindings
+  //   that are set on "organizations/123456".
+  // * `Important` to find IAM policy bindings that contain "Important" as a
+  //   word in any of the searchable fields (except for the included
+  //   permissions).
+  // * `*por*` to find IAM policy bindings that contain "por" as a substring
+  //   in any of the searchable fields (except for the included permissions).
+  // * `resource:(instance1 OR instance2) policy:amy` to find
+  //   IAM policy bindings that are set on resources "instance1" or
+  //   "instance2" and also specify user "amy".
   string query = 2 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. The page size for search result pagination. Page size is capped
-  // at 500 even if a larger value is given. If set to zero, server will pick an
-  // appropriate default. Returned results may be fewer than requested. When
-  // this happens, there could be more results as long as `next_page_token` is
-  // returned.
+  // Optional. The page size for search result pagination. Page size is capped at 500 even
+  // if a larger value is given. If set to zero, server will pick an appropriate
+  // default. Returned results may be fewer than requested. When this happens,
+  // there could be more results as long as `next_page_token` is returned.
   int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. If present, retrieve the next batch of results from the preceding
-  // call to this method. `page_token` must be the value of `next_page_token`
-  // from the previous response. The values of all other method parameters must
-  // be identical to those in the previous call.
+  // Optional. If present, retrieve the next batch of results from the preceding call to
+  // this method. `page_token` must be the value of `next_page_token` from the
+  // previous response. The values of all other method parameters must be
+  // identical to those in the previous call.
   string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
 }
 
@@ -604,6 +652,6 @@ enum ContentType {
   // The Cloud Organization Policy set on an asset.
   ORG_POLICY = 4;
 
-  // The Cloud Access context mananger Policy set on an asset.
+  // The Cloud Access context manager Policy set on an asset.
   ACCESS_POLICY = 5;
 }
diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
index 584259b18..b9d56744e 100644
--- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
+++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
@@ -16,7 +16,6 @@ syntax = "proto3";
 
 package google.cloud.asset.v1;
 
-import "google/api/annotations.proto";
 import "google/api/resource.proto";
 import "google/cloud/orgpolicy/v1/orgpolicy.proto";
 import "google/iam/v1/policy.proto";
@@ -27,6 +26,7 @@ import "google/protobuf/any.proto";
 import "google/protobuf/struct.proto";
 import "google/protobuf/timestamp.proto";
 import "google/rpc/code.proto";
+import "google/api/annotations.proto";
 
 option cc_enable_arenas = true;
 option csharp_namespace = "Google.Cloud.Asset.V1";
@@ -150,8 +150,7 @@ message Asset {
 
     // Please also refer to the [service perimeter user
     // guide](https://cloud.google.com/vpc-service-controls/docs/overview).
-    google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter =
-        9;
+    google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
   }
 
   // The ancestry path of an asset in Google Cloud [resource
@@ -215,7 +214,7 @@ message Resource {
   string location = 8;
 }
 
-// A result of Resource Search, containing information of a cloud resoure.
+// A result of Resource Search, containing information of a cloud resource.
 message ResourceSearchResult {
   // The full resource name of this resource. Example:
   // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
@@ -225,8 +224,8 @@ message ResourceSearchResult {
   //
   // To search against the `name`:
   //
-  // * use a field query. Example: `name : "instance1"`
-  // * use a free text query. Example: `"instance1"`
+  // * use a field query. Example: `name:instance1`
+  // * use a free text query. Example: `instance1`
   string name = 1;
 
   // The type of this resource. Example: `compute.googleapis.com/Disk`.
@@ -248,7 +247,7 @@ message ResourceSearchResult {
   //
   // To search against the `display_name`:
   //
-  // * use a field query. Example: `displayName : "My Instance"`
+  // * use a field query. Example: `displayName:"My Instance"`
   // * use a free text query. Example: `"My Instance"`
   string display_name = 4;
 
@@ -257,7 +256,7 @@ message ResourceSearchResult {
   //
   // To search against the `description`:
   //
-  // * use a field query. Example: `description : "*important instance*"`
+  // * use a field query. Example: `description:"*important instance*"`
   // * use a free text query. Example: `"*important instance*"`
   string description = 5;
 
@@ -266,8 +265,8 @@ message ResourceSearchResult {
   //
   // To search against the `location`:
   //
-  // * use a field query. Example: `location : "us-west*"`
-  // * use a free text query. Example: `"us-west*"`
+  // * use a field query. Example: `location:us-west*`
+  // * use a free text query. Example: `us-west*`
   string location = 6;
 
   // Labels associated with this resource. See [Labelling and grouping GCP
@@ -276,11 +275,11 @@ message ResourceSearchResult {
   //
   // To search against the `labels`:
   //
-  // * use a field query, as following:
-  //     - query on any label's key or value. Example: `labels : "prod"`
-  //     - query by a given label. Example: `labels.env : "prod"`
-  //     - query by a given label'sexistence. Example: `labels.env : *`
-  // * use a free text query. Example: `"prod"`
+  // * use a field query:
+  //     - query on any label's key or value. Example: `labels:prod`
+  //     - query by a given label. Example: `labels.env:prod`
+  //     - query by a given label's existence. Example: `labels.env:*`
+  // * use a free text query. Example: `prod`
   map labels = 7;
 
   // Network tags associated with this resource. Like labels, network tags are a
@@ -290,19 +289,29 @@ message ResourceSearchResult {
   //
   // To search against the `network_tags`:
   //
-  // * use a field query. Example: `networkTags : "internal"`
-  // * use a free text query. Example: `"internal"`
+  // * use a field query. Example: `networkTags:internal`
+  // * use a free text query. Example: `internal`
   repeated string network_tags = 8;
 
-  // The additional attributes of this resource. The attributes may vary from
-  // one resource type to another. Examples: `projectId` for Project,
-  // `dnsName` for DNS ManagedZone.
+  // The additional searchable attributes of this resource. The attributes may
+  // vary from one resource type to another. Examples: `projectId` for Project,
+  // `dnsName` for DNS ManagedZone. This field contains a subset of the resource
+  // metadata fields that are returned by the List or Get APIs provided by the
+  // corresponding GCP service (e.g., Compute Engine). see [API references and
+  // supported searchable
+  // attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
+  // for more information.
+  //
+  // You can search values of these fields through free text search. However,
+  // you should not consume the field programically as the field names and
+  // values may change as the GCP service updates to a new incompatible API
+  // version.
   //
   // To search against the `additional_attributes`:
   //
   // * use a free text query to match the attributes values. Example: to search
   //   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
-  //   `"foobar"`.
+  //   `foobar`.
   google.protobuf.Struct additional_attributes = 9;
 }
 
@@ -318,7 +327,7 @@ message IamPolicySearchResult {
 
     // The map from roles to their included permissions that match the
     // permission query (i.e., a query containing `policy.role.permissions:`).
-    // Example: if query `policy.role.permissions : "compute.disk.get"`
+    // Example: if query `policy.role.permissions:compute.disk.get`
     // matches a policy binding that contains owner role, the
     // matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
     // roles can also be found in the returned `policy` bindings. Note that the
@@ -335,7 +344,7 @@ message IamPolicySearchResult {
   //
   // To search against the `resource`:
   //
-  // * use a field query. Example: `resource : "organizations/123"`
+  // * use a field query. Example: `resource:organizations/123`
   string resource = 1;
 
   // The project that the associated GCP resource belongs to, in the form of
@@ -356,13 +365,13 @@ message IamPolicySearchResult {
   //
   // To search against the `policy` bindings:
   //
-  // * use a field query, as following:
+  // * use a field query:
   //     - query by the policy contained members. Example:
-  //       `policy : "amy@gmail.com"`
+  //       `policy:amy@gmail.com`
   //     - query by the policy contained roles. Example:
-  //       `policy : "roles/compute.admin"`
-  //     - query by the policy contained roles' implied permissions. Example:
-  //       `policy.role.permissions : "compute.instances.create"`
+  //       `policy:roles/compute.admin`
+  //     - query by the policy contained roles' included permissions. Example:
+  //       `policy.role.permissions:compute.instances.create`
   google.iam.v1.Policy policy = 3;
 
   // Explanation about the IAM policy search result. It contains additional
diff --git a/synth.metadata b/synth.metadata
index 4ecb2b3ec..6ac45d5cd 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,48 +11,48 @@
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "4d8706453bf6016ebf1bb241d78b4dc58c92064d",
-        "internalRef": "320022685"
+        "sha": "3a54e988edcbdef1e47c6ac19d3074a87214f667",
+        "internalRef": "326582222"
       }
     },
     {
@@ -271,6 +271,8 @@
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java",
+    "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java",
+    "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java",
@@ -281,6 +283,8 @@
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java",
+    "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java",
+    "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java",
     "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java",