diff --git a/java-asset/README.md b/java-asset/README.md index 5ac1601de848..ff515d7e1a5d 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -11,59 +11,28 @@ Java idiomatic client for [Cloud Asset Inventory][product-docs]. ## Quickstart -If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: -```xml - - - - com.google.cloud - libraries-bom - 26.1.2 - pom - import - - - - - - - com.google.cloud - google-cloud-asset - - - -``` - -If you are using Maven without BOM, add this to your dependencies: +If you are using Maven, add this to your pom.xml file: ```xml com.google.cloud google-cloud-asset - 3.6.0 + 3.7.0 - ``` -If you are using Gradle 5.x or later, add this to your dependencies: - -```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.2') - -implementation 'com.google.cloud:google-cloud-asset' -``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.6.0' +implementation 'com.google.cloud:google-cloud-asset:3.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.7.0" ``` ## Authentication @@ -101,29 +70,6 @@ use this Cloud Asset Inventory Client Library. -## Samples - -Samples are in the [`samples/`](https://github.com/googleapis/java-asset/tree/main/samples) directory. - -| Sample | Source Code | Try it | -| --------------------------- | --------------------------------- | ------ | -| Analyze Iam Policy Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyExample.java) | -| Analyze Iam Policy Longrunning Bigquery Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningBigqueryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningBigqueryExample.java) | -| Analyze Iam Policy Longrunning Gcs Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningGcsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningGcsExample.java) | -| Batch Get Assets History Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java) | -| Batch Get Effective Iam Policy Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/BatchGetEffectiveIamPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/BatchGetEffectiveIamPolicyExample.java) | -| Create Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/CreateFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/CreateFeedExample.java) | -| Delete Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/DeleteFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/DeleteFeedExample.java) | -| Export Assets Bigquery Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ExportAssetsBigqueryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ExportAssetsBigqueryExample.java) | -| Export Assets Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ExportAssetsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ExportAssetsExample.java) | -| Get Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/GetFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/GetFeedExample.java) | -| List Assets Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ListAssetsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ListAssetsExample.java) | -| List Feeds Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ListFeedsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ListFeedsExample.java) | -| Search All Iam Policies Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/SearchAllIamPoliciesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/SearchAllIamPoliciesExample.java) | -| Search All Resources Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/SearchAllResourcesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/SearchAllResourcesExample.java) | -| Update Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/UpdateFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/UpdateFeedExample.java) | - - ## Troubleshooting diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 2c9aeb298a2e..466fecbbe733 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -53,57 +53,57 @@ com.google.cloud google-cloud-asset - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 8ce05d3ed7e7..a2fc23029adb 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -1115,6 +1115,9 @@ public final UnaryCallable deleteFeedCallable() { * "prod". *
  • `labels.env:*` to find Cloud resources that have a label "env". *
  • `kmsKey:key` to find Cloud resources encrypted with a customer-managed encryption key + * whose name contains "key" as a word. This field is deprecated. Please use the + * `kmsKeys` field to retrieve KMS key information. + *
  • `kmsKeys:key` to find Cloud resources encrypted with customer-managed encryption keys * whose name contains the word "key". *
  • `relationships:instance-group-1` to find Cloud resources that have relationships with * "instance-group-1" in the related resource name. diff --git a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java index 5d600a2f3dd9..2c561052b420 100644 --- a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -977,14 +977,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 Protobuf 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 Protobuf 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( @@ -1156,12 +1155,11 @@ public void analyzeIamPolicy( * accesses on which resources, and writes the analysis results to a Google * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the * output format is the JSON format that represents a - * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. - * This method implements the - * [google.longrunning.Operation][google.longrunning.Operation], which allows - * you to track the operation status. We recommend intervals of at least 2 - * seconds with exponential backoff retry to poll the operation result. The - * metadata contains the metadata for the long-running operation. + * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the + * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation + * status. We recommend intervals of at least 2 seconds with exponential + * backoff retry to poll the operation result. The metadata contains the + * metadata for the long-running operation. * */ public void analyzeIamPolicyLongrunning( @@ -1460,14 +1458,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 Protobuf 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 Protobuf 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( @@ -1655,12 +1652,11 @@ public void analyzeIamPolicy( * accesses on which resources, and writes the analysis results to a Google * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the * output format is the JSON format that represents a - * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. - * This method implements the - * [google.longrunning.Operation][google.longrunning.Operation], which allows - * you to track the operation status. We recommend intervals of at least 2 - * seconds with exponential backoff retry to poll the operation result. The - * metadata contains the metadata for the long-running operation. + * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the + * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation + * status. We recommend intervals of at least 2 seconds with exponential + * backoff retry to poll the operation result. The metadata contains the + * metadata for the long-running operation. * */ public void analyzeIamPolicyLongrunning( @@ -1845,14 +1841,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 Protobuf 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 Protobuf 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( @@ -2014,12 +2009,11 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy( * accesses on which resources, and writes the analysis results to a Google * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the * output format is the JSON format that represents a - * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. - * This method implements the - * [google.longrunning.Operation][google.longrunning.Operation], which allows - * you to track the operation status. We recommend intervals of at least 2 - * seconds with exponential backoff retry to poll the operation result. The - * metadata contains the metadata for the long-running operation. + * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the + * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation + * status. We recommend intervals of at least 2 seconds with exponential + * backoff retry to poll the operation result. The metadata contains the + * metadata for the long-running operation. * */ public com.google.longrunning.Operation analyzeIamPolicyLongrunning( @@ -2174,14 +2168,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 Protobuf 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 Protobuf 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 @@ -2349,12 +2342,11 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java index 16e2935d0316..71e8cf0b188d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java @@ -53,60 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeIamPolicyLongrunningMetadata( - 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.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_AnalyzeIamPolicyLongrunningMetadata_descriptor; @@ -188,7 +134,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -200,7 +146,7 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -220,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,7 +181,7 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -366,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -475,7 +414,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMe if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -490,19 +429,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -740,7 +697,18 @@ public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java index 2cd68a884ad6..0c935ae74240 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java @@ -22,8 +22,7 @@ * * *
    - * A request message for
    - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    + * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} @@ -54,85 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeIamPolicyLongrunningRequest( - 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.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedAnalysisQuery_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_AnalyzeIamPolicyLongrunningRequest_descriptor; @@ -281,8 +201,7 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { * * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * * @@ -299,8 +218,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.
        * 
    * * @@ -319,8 +237,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() * * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * * @@ -356,7 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedAnalysisQuery_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -374,7 +291,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -399,7 +316,7 @@ public boolean equals(final java.lang.Object obj) { if (hasOutputConfig()) { if (!getOutputConfig().equals(other.getOutputConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -420,7 +337,7 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -525,8 +442,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A request message for
    -   * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +   * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} @@ -551,17 +467,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -681,7 +590,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -696,18 +605,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + savedAnalysisQuery_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1091,8 +1031,7 @@ public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) * * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * * @@ -1108,8 +1047,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.
          * 
    * * @@ -1131,8 +1069,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() * * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * * @@ -1156,8 +1093,7 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutput * * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * * @@ -1179,8 +1115,7 @@ public Builder setOutputConfig( * * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * * @@ -1209,8 +1144,7 @@ public Builder mergeOutputConfig( * * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * * @@ -1232,8 +1166,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.
          * 
    * * @@ -1250,8 +1183,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.
          * 
    * * @@ -1272,8 +1204,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.
          * 
    * * @@ -1330,7 +1261,18 @@ public AnalyzeIamPolicyLongrunningRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java index 37d5b61146f4..68668cfee79e 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java @@ -117,8 +117,7 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder * * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * * @@ -132,8 +131,7 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder * * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * * @@ -147,8 +145,7 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder * * *
    -   * 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/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java index 808bc307bc08..3670a53f2871 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java @@ -22,8 +22,7 @@ * * *
    - * A response message for
    - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    + * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} @@ -53,45 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeIamPolicyLongrunningResponse( - 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; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_AnalyzeIamPolicyLongrunningResponse_descriptor; @@ -121,7 +81,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -130,7 +90,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -146,7 +106,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) obj; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,7 +117,7 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -262,8 +222,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A response message for
    -   * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +   * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} @@ -288,17 +247,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -383,7 +335,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRe if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -398,19 +350,31 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -447,7 +411,18 @@ public AnalyzeIamPolicyLongrunningResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java index e0090b98f09a..a844cf105db1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java @@ -22,8 +22,7 @@ * * *
    - * A request message for
    - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    + * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} @@ -53,83 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeIamPolicyRequest( - 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.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (executionTimeout_ != null) { - subBuilder = executionTimeout_.toBuilder(); - } - executionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTimeout_); - executionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedAnalysisQuery_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_AnalyzeIamPolicyRequest_descriptor; @@ -278,8 +200,7 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { * * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -303,8 +224,7 @@ public boolean hasExecutionTimeout() {
        *
        *
        * 
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -330,8 +250,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
        *
        *
        * 
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -373,7 +292,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedAnalysisQuery_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -391,7 +310,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -416,7 +335,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasExecutionTimeout()) {
           if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -437,7 +356,7 @@ public int hashCode() {
           hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER;
           hash = (53 * hash) + getExecutionTimeout().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -541,8 +460,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        *
        * 
    -   * A request message for
    -   * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +   * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} @@ -567,17 +485,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -695,7 +606,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other if (other.hasExecutionTimeout()) { mergeExecutionTimeout(other.getExecutionTimeout()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -710,18 +621,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage( + getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + savedAnalysisQuery_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1105,8 +1048,7 @@ public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) * * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1129,8 +1071,7 @@ public boolean hasExecutionTimeout() {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1159,8 +1100,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1191,8 +1131,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1220,8 +1159,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1256,8 +1194,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1286,8 +1223,7 @@ public Builder clearExecutionTimeout() {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1310,8 +1246,7 @@ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1338,8 +1273,7 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
          *
          *
          * 
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1402,7 +1336,18 @@ public AnalyzeIamPolicyRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new AnalyzeIamPolicyRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java
    index 6c1c7d4abc83..412e3af762ac 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java
    @@ -117,8 +117,7 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        *
        *
        * 
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -139,8 +138,7 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        *
        *
        * 
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -161,8 +159,7 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        *
        *
        * 
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java
    index ded28a1b4028..06bef67dc804 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java
    @@ -22,8 +22,7 @@
      *
      *
      * 
    - * A response message for
    - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    + * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} @@ -53,87 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeIamPolicyResponse( - 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: - { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - subBuilder = null; - if (mainAnalysis_ != null) { - subBuilder = mainAnalysis_.toBuilder(); - } - mainAnalysis_ = - input.readMessage( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mainAnalysis_); - mainAnalysis_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>(); - mutable_bitField0_ |= 0x00000001; - } - serviceAccountImpersonationAnalysis_.add( - input.readMessage( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), - extensionRegistry)); - break; - } - case 24: - { - fullyExplored_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); - } - 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_AnalyzeIamPolicyResponse_descriptor; @@ -193,9 +111,8 @@ public interface IamPolicyAnalysisOrBuilder * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -205,9 +122,8 @@ public interface IamPolicyAnalysisOrBuilder * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -217,9 +133,8 @@ public interface IamPolicyAnalysisOrBuilder * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -229,9 +144,8 @@ public interface IamPolicyAnalysisOrBuilder * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -242,9 +156,8 @@ public interface IamPolicyAnalysisOrBuilder * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -256,9 +169,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB * * *
    -     * Represents whether all entries in the
    -     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -     * have been fully explored to answer the query.
    +     * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +     * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; @@ -355,100 +267,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IamPolicyAnalysis( - 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: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - analysisResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - analysisResults_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), - extensionRegistry)); - break; - } - case 24: - { - fullyExplored_ = input.readBool(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - nonCriticalErrors_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - analysisResults_ = java.util.Collections.unmodifiableList(analysisResults_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = java.util.Collections.unmodifiableList(nonCriticalErrors_); - } - 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_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; @@ -518,9 +336,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -534,9 +351,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -550,9 +366,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -565,9 +380,8 @@ public int getAnalysisResultsCount() { * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -580,9 +394,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int * * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -599,9 +412,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes * * *
    -     * Represents whether all entries in the
    -     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -     * have been fully explored to answer the query.
    +     * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +     * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; @@ -710,7 +522,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < nonCriticalErrors_.size(); i++) { output.writeMessage(5, nonCriticalErrors_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -733,7 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, nonCriticalErrors_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -756,7 +568,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAnalysisResultsList().equals(other.getAnalysisResultsList())) return false; if (getFullyExplored() != other.getFullyExplored()) return false; if (!getNonCriticalErrorsList().equals(other.getNonCriticalErrorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -781,7 +593,7 @@ public int hashCode() { hash = (37 * hash) + NON_CRITICAL_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getNonCriticalErrorsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -915,20 +727,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAnalysisResultsFieldBuilder(); - getNonCriticalErrorsFieldBuilder(); - } } @java.lang.Override @@ -942,18 +744,20 @@ public Builder clear() { } if (analysisResultsBuilder_ == null) { analysisResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + analysisResults_ = null; analysisResultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); fullyExplored_ = false; if (nonCriticalErrorsBuilder_ == null) { nonCriticalErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + nonCriticalErrors_ = null; nonCriticalErrorsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1124,7 +928,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1139,19 +943,71 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), + extensionRegistry); + if (analysisResultsBuilder_ == null) { + ensureAnalysisResultsIsMutable(); + analysisResults_.add(m); + } else { + analysisResultsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + fullyExplored_ = input.readBool(); + + break; + } // case 24 + case 42: + { + com.google.cloud.asset.v1.IamPolicyAnalysisState m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), + extensionRegistry); + if (nonCriticalErrorsBuilder_ == null) { + ensureNonCriticalErrorsIsMutable(); + nonCriticalErrors_.add(m); + } else { + nonCriticalErrorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1365,9 +1221,8 @@ private void ensureAnalysisResultsIsMutable() { * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1384,9 +1239,8 @@ private void ensureAnalysisResultsIsMutable() { * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1402,9 +1256,8 @@ public int getAnalysisResultsCount() { * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1420,9 +1273,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1445,9 +1297,8 @@ public Builder setAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1467,9 +1318,8 @@ public Builder setAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1491,9 +1341,8 @@ public Builder addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisRes * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1516,9 +1365,8 @@ public Builder addAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1538,9 +1386,8 @@ public Builder addAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1560,9 +1407,8 @@ public Builder addAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1582,9 +1428,8 @@ public Builder addAllAnalysisResults( * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1603,9 +1448,8 @@ public Builder clearAnalysisResults() { * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1624,9 +1468,8 @@ public Builder removeAnalysisResults(int index) { * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1639,9 +1482,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResu * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1658,9 +1500,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1677,9 +1518,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1692,9 +1532,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1709,9 +1548,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu * * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1746,9 +1584,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu * * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; @@ -1763,9 +1600,8 @@ public boolean getFullyExplored() { * * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; @@ -1783,9 +1619,8 @@ public Builder setFullyExplored(boolean value) { * * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; @@ -2215,7 +2050,19 @@ public IamPolicyAnalysis parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysis(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2387,11 +2234,9 @@ public int getServiceAccountImpersonationAnalysisCount() { * * *
    -   * Represents whether all entries in the
    -   * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -   * and
    -   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -   * have been fully explored to answer the query in the request.
    +   * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +   * answer the query in the request.
        * 
    * * bool fully_explored = 3; @@ -2426,7 +2271,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fullyExplored_ != false) { output.writeBool(3, fullyExplored_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2446,7 +2291,7 @@ public int getSerializedSize() { if (fullyExplored_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2469,7 +2314,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountImpersonationAnalysisList() .equals(other.getServiceAccountImpersonationAnalysisList())) return false; if (getFullyExplored() != other.getFullyExplored()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2490,7 +2335,7 @@ public int hashCode() { } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2594,8 +2439,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A response message for
    -   * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +   * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} @@ -2620,19 +2464,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getServiceAccountImpersonationAnalysisFieldBuilder(); - } } @java.lang.Override @@ -2646,10 +2481,11 @@ public Builder clear() { } if (serviceAccountImpersonationAnalysisBuilder_ == null) { serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + serviceAccountImpersonationAnalysis_ = null; serviceAccountImpersonationAnalysisBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); fullyExplored_ = false; return this; @@ -2781,7 +2617,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse othe if (other.getFullyExplored() != false) { setFullyExplored(other.getFullyExplored()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2796,18 +2632,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMainAnalysisFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .parser(), + extensionRegistry); + if (serviceAccountImpersonationAnalysisBuilder_ == null) { + ensureServiceAccountImpersonationAnalysisIsMutable(); + serviceAccountImpersonationAnalysis_.add(m); + } else { + serviceAccountImpersonationAnalysisBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + fullyExplored_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3473,11 +3349,9 @@ public Builder removeServiceAccountImpersonationAnalysis(int index) { * * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; @@ -3492,11 +3366,9 @@ public boolean getFullyExplored() { * * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; @@ -3514,11 +3386,9 @@ public Builder setFullyExplored(boolean value) { * * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; @@ -3564,7 +3434,18 @@ public AnalyzeIamPolicyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java index 6b26559c67e1..d55dcdf9ccf0 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java @@ -142,11 +142,9 @@ public interface AnalyzeIamPolicyResponseOrBuilder * * *
    -   * Represents whether all entries in the
    -   * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -   * and
    -   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -   * have been fully explored to answer the query in the request.
    +   * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +   * answer the query in the request.
        * 
    * * bool fully_explored = 3; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java index 19aa2c4bdef9..ea3940ed5c9a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeMoveRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - resource_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - destinationParent_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_AnalyzeMoveRequest_descriptor; @@ -469,7 +409,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, view_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -489,7 +429,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -508,7 +448,7 @@ public boolean equals(final java.lang.Object obj) { if (!getResource().equals(other.getResource())) return false; if (!getDestinationParent().equals(other.getDestinationParent())) return false; if (view_ != other.view_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -525,7 +465,7 @@ public int hashCode() { hash = (53 * hash) + getDestinationParent().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -654,17 +594,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeMoveRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -766,7 +699,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeMoveRequest other) { if (other.view_ != 0) { setViewValue(other.getViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -781,17 +714,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeMoveRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + destinationParent_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + view_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.AnalyzeMoveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1172,7 +1137,18 @@ public AnalyzeMoveRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeMoveRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java index 5c684bd6aef7..4a0685f15acb 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AnalyzeMoveResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - moveAnalysis_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveAnalysis.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = java.util.Collections.unmodifiableList(moveAnalysis_); - } - 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_AnalyzeMoveResponse_descriptor; @@ -212,7 +158,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < moveAnalysis_.size(); i++) { output.writeMessage(1, moveAnalysis_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -224,7 +170,7 @@ public int getSerializedSize() { for (int i = 0; i < moveAnalysis_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, moveAnalysis_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -241,7 +187,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.AnalyzeMoveResponse) obj; if (!getMoveAnalysisList().equals(other.getMoveAnalysisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,7 +202,7 @@ public int hashCode() { hash = (37 * hash) + MOVE_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getMoveAnalysisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -385,19 +331,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AnalyzeMoveResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMoveAnalysisFieldBuilder(); - } } @java.lang.Override @@ -405,10 +342,11 @@ public Builder clear() { super.clear(); if (moveAnalysisBuilder_ == null) { moveAnalysis_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + moveAnalysis_ = null; moveAnalysisBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -522,7 +460,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeMoveResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -537,17 +475,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeMoveResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.MoveAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.MoveAnalysis.parser(), extensionRegistry); + if (moveAnalysisBuilder_ == null) { + ensureMoveAnalysisIsMutable(); + moveAnalysis_.add(m); + } else { + moveAnalysisBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.AnalyzeMoveResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -953,7 +918,18 @@ public AnalyzeMoveResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeMoveResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java index d7f1dcf9cd55..a9d87f9f995b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java @@ -63,244 +63,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Asset( - 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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 26: - { - com.google.cloud.asset.v1.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage(com.google.cloud.asset.v1.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (iamPolicy_ != null) { - subBuilder = iamPolicy_.toBuilder(); - } - iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(iamPolicy_); - iamPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - orgPolicy_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - orgPolicy_.add( - input.readMessage( - com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry)); - break; - } - case 58: - { - com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null; - if (accessContextPolicyCase_ == 7) { - subBuilder = - ((com.google.identity.accesscontextmanager.v1.AccessPolicy) - accessContextPolicy_) - .toBuilder(); - } - accessContextPolicy_ = - input.readMessage( - com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.identity.accesscontextmanager.v1.AccessPolicy) - accessContextPolicy_); - accessContextPolicy_ = subBuilder.buildPartial(); - } - accessContextPolicyCase_ = 7; - break; - } - case 66: - { - com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null; - if (accessContextPolicyCase_ == 8) { - subBuilder = - ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_) - .toBuilder(); - } - accessContextPolicy_ = - input.readMessage( - com.google.identity.accesscontextmanager.v1.AccessLevel.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); - accessContextPolicy_ = subBuilder.buildPartial(); - } - accessContextPolicyCase_ = 8; - break; - } - case 74: - { - com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder = - null; - if (accessContextPolicyCase_ == 9) { - subBuilder = - ((com.google.identity.accesscontextmanager.v1.ServicePerimeter) - accessContextPolicy_) - .toBuilder(); - } - accessContextPolicy_ = - input.readMessage( - com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.identity.accesscontextmanager.v1.ServicePerimeter) - accessContextPolicy_); - accessContextPolicy_ = subBuilder.buildPartial(); - } - accessContextPolicyCase_ = 9; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - ancestors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - ancestors_.add(s); - break; - } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - com.google.cloud.osconfig.v1.Inventory.Builder subBuilder = null; - if (osInventory_ != null) { - subBuilder = osInventory_.toBuilder(); - } - osInventory_ = - input.readMessage( - com.google.cloud.osconfig.v1.Inventory.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(osInventory_); - osInventory_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.asset.v1.RelatedAssets.Builder subBuilder = null; - if (relatedAssets_ != null) { - subBuilder = relatedAssets_.toBuilder(); - } - relatedAssets_ = - input.readMessage( - com.google.cloud.asset.v1.RelatedAssets.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(relatedAssets_); - relatedAssets_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.asset.v1.RelatedAsset.Builder subBuilder = null; - if (relatedAsset_ != null) { - subBuilder = relatedAsset_.toBuilder(); - } - relatedAsset_ = - input.readMessage( - com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(relatedAsset_); - relatedAsset_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - ancestors_ = ancestors_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_Asset_descriptor; @@ -1201,7 +963,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (relatedAsset_ != null) { output.writeMessage(15, getRelatedAsset()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1261,7 +1023,7 @@ public int getSerializedSize() { if (relatedAsset_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRelatedAsset()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1318,7 +1080,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1381,7 +1143,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1516,19 +1278,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.Asset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getOrgPolicyFieldBuilder(); - } } @java.lang.Override @@ -1558,10 +1311,20 @@ public Builder clear() { } if (orgPolicyBuilder_ == null) { orgPolicy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + orgPolicy_ = null; orgPolicyBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.clear(); + } + if (accessLevelBuilder_ != null) { + accessLevelBuilder_.clear(); + } + if (servicePerimeterBuilder_ != null) { + servicePerimeterBuilder_.clear(); + } if (osInventoryBuilder_ == null) { osInventory_ = null; } else { @@ -1812,7 +1575,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1827,17 +1590,118 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.Asset parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + com.google.cloud.orgpolicy.v1.Policy m = + input.readMessage( + com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry); + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + orgPolicy_.add(m); + } else { + orgPolicyBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry); + accessContextPolicyCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry); + accessContextPolicyCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry); + accessContextPolicyCase_ = 9; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAncestorsIsMutable(); + ancestors_.add(s); + break; + } // case 82 + case 90: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage(getOsInventoryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getRelatedAssetsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 122: + { + input.readMessage(getRelatedAssetFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.Asset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4687,7 +4551,18 @@ public Asset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java index 3a788975f1fe..8b4f37133004 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -145,155 +145,157 @@ 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\031google/api/resource" - + ".proto\032)google/cloud/orgpolicy/v1/orgpol" - + "icy.proto\032(google/cloud/osconfig/v1/inve" - + "ntory.proto\032\032google/iam/v1/policy.proto\032" - + ":google/identity/accesscontextmanager/v1" - + "/access_level.proto\032;google/identity/acc" - + "esscontextmanager/v1/access_policy.proto" - + "\032?google/identity/accesscontextmanager/v" - + "1/service_perimeter.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timesta" - + "mp.proto\032\025google/rpc/code.proto\"\365\002\n\rTemp" - + "oralAsset\0221\n\006window\030\001 \001(\0132!.google.cloud" - + ".asset.v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n" - + "\005asset\030\003 \001(\0132\034.google.cloud.asset.v1.Ass" - + "et\022O\n\021prior_asset_state\030\004 \001(\01624.google.c" - + "loud.asset.v1.TemporalAsset.PriorAssetSt" - + "ate\0221\n\013prior_asset\030\005 \001(\0132\034.google.cloud." - + "asset.v1.Asset\"o\n\017PriorAssetState\022!\n\035PRI" - + "OR_ASSET_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020" - + "\001\022\013\n\007INVALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DE" - + "LETED\020\004\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\"\363\005\n\005" - + "Asset\022/\n\013update_time\030\013 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_ty" - + "pe\030\002 \001(\t\0221\n\010resource\030\003 \001(\0132\037.google.clou" - + "d.asset.v1.Resource\022)\n\niam_policy\030\004 \001(\0132" - + "\025.google.iam.v1.Policy\0225\n\norg_policy\030\006 \003" - + "(\0132!.google.cloud.orgpolicy.v1.Policy\022N\n" - + "\raccess_policy\030\007 \001(\01325.google.identity.a" - + "ccesscontextmanager.v1.AccessPolicyH\000\022L\n" - + "\014access_level\030\010 \001(\01324.google.identity.ac" - + "cesscontextmanager.v1.AccessLevelH\000\022V\n\021s" - + "ervice_perimeter\030\t \001(\01329.google.identity" - + ".accesscontextmanager.v1.ServicePerimete" - + "rH\000\0229\n\014os_inventory\030\014 \001(\0132#.google.cloud" - + ".osconfig.v1.Inventory\022@\n\016related_assets" - + "\030\r \001(\0132$.google.cloud.asset.v1.RelatedAs" - + "setsB\002\030\001\022:\n\rrelated_asset\030\017 \001(\0132#.google" - + ".cloud.asset.v1.RelatedAsset\022\021\n\tancestor" - + "s\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/" - + "Asset\022\001*B\027\n\025access_context_policy\"\262\001\n\010Re" - + "source\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_doc" - + "ument_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022" - + "\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n" - + "\004data\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010" - + "location\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027rela" - + "tionship_attributes\030\001 \001(\0132-.google.cloud" - + ".asset.v1.RelationshipAttributes\0223\n\006asse" - + "ts\030\002 \003(\0132#.google.cloud.asset.v1.Related" - + "Asset:\002\030\001\"v\n\026RelationshipAttributes\022\014\n\004t" - + "ype\030\004 \001(\t\022\034\n\024source_resource_type\030\001 \001(\t\022" - + "\034\n\024target_resource_type\030\002 \001(\t\022\016\n\006action\030" - + "\003 \001(\t:\002\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(" - + "\tB$\372A!\n\037cloudasset.googleapis.com/Asset\022" - + "\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031" - + "\n\021relationship_type\030\004 \001(\t\"\262\007\n\024ResourceSe" - + "archResult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002" - + " \001(\t\022\017\n\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024" - + "\n\014organization\030\022 \001(\t\022\024\n\014display_name\030\004 \001" - + "(\t\022\023\n\013description\030\005 \001(\t\022\020\n\010location\030\006 \001(" - + "\t\022G\n\006labels\030\007 \003(\01327.google.cloud.asset.v" - + "1.ResourceSearchResult.LabelsEntry\022\024\n\014ne" - + "twork_tags\030\010 \003(\t\022\017\n\007kms_key\030\n \001(\t\022/\n\013cre" - + "ate_time\030\013 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013update_time\030\014 \001(\0132\032.google.protobu" - + "f.Timestamp\022\r\n\005state\030\r \001(\t\0226\n\025additional" - + "_attributes\030\t \001(\0132\027.google.protobuf.Stru" - + "ct\022!\n\031parent_full_resource_name\030\023 \001(\t\022E\n" - + "\023versioned_resources\030\020 \003(\0132(.google.clou" - + "d.asset.v1.VersionedResource\022C\n\022attached" - + "_resources\030\024 \003(\0132\'.google.cloud.asset.v1" - + ".AttachedResource\022U\n\rrelationships\030\025 \003(\013" - + "2>.google.cloud.asset.v1.ResourceSearchR" - + "esult.RelationshipsEntry\022\020\n\010tag_keys\030\027 \003" - + "(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n\rtag_value_ids\030" - + "\032 \003(\t\022\031\n\021parent_asset_type\030g \001(\t\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" - + "]\n\022RelationshipsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005va" - + "lue\030\002 \001(\0132\'.google.cloud.asset.v1.Relate" - + "dResources:\0028\001\"O\n\021VersionedResource\022\017\n\007v" - + "ersion\030\001 \001(\t\022)\n\010resource\030\002 \001(\0132\027.google." - + "protobuf.Struct\"m\n\020AttachedResource\022\022\n\na" - + "sset_type\030\001 \001(\t\022E\n\023versioned_resources\030\003" - + " \003(\0132(.google.cloud.asset.v1.VersionedRe" - + "source\"U\n\020RelatedResources\022A\n\021related_re" - + "sources\030\001 \003(\0132&.google.cloud.asset.v1.Re" - + "latedResource\"A\n\017RelatedResource\022\022\n\nasse" - + "t_type\030\001 \001(\t\022\032\n\022full_resource_name\030\002 \001(\t" - + "\"\217\004\n\025IamPolicySearchResult\022\020\n\010resource\030\001" - + " \001(\t\022\022\n\nasset_type\030\005 \001(\t\022\017\n\007project\030\002 \001(" - + "\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014organization\030\007 \001(\t" - + "\022%\n\006policy\030\003 \001(\0132\025.google.iam.v1.Policy\022" - + "M\n\013explanation\030\004 \001(\01328.google.cloud.asse" - + "t.v1.IamPolicySearchResult.Explanation\032\241" - + "\002\n\013Explanation\022m\n\023matched_permissions\030\001 " - + "\003(\0132P.google.cloud.asset.v1.IamPolicySea" - + "rchResult.Explanation.MatchedPermissions" - + "Entry\032\"\n\013Permissions\022\023\n\013permissions\030\001 \003(" - + "\t\032\177\n\027MatchedPermissionsEntry\022\013\n\003key\030\001 \001(" - + "\t\022S\n\005value\030\002 \001(\0132D.google.cloud.asset.v1" - + ".IamPolicySearchResult.Explanation.Permi" - + "ssions:\0028\001\"G\n\026IamPolicyAnalysisState\022\036\n\004" - + "code\030\001 \001(\0162\020.google.rpc.Code\022\r\n\005cause\030\002 " - + "\001(\t\"\306\001\n\023ConditionEvaluation\022T\n\020evaluatio" - + "n_value\030\001 \001(\0162:.google.cloud.asset.v1.Co" - + "nditionEvaluation.EvaluationValue\"Y\n\017Eva" - + "luationValue\022 \n\034EVALUATION_VALUE_UNSPECI" - + "FIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE\020\002\022\017\n\013CONDITION" - + "AL\020\003\"\253\t\n\027IamPolicyAnalysisResult\022#\n\033atta" - + "ched_resource_full_name\030\001 \001(\t\022+\n\013iam_bin" - + "ding\030\002 \001(\0132\026.google.iam.v1.Binding\022^\n\024ac" - + "cess_control_lists\030\003 \003(\0132@.google.cloud." - + "asset.v1.IamPolicyAnalysisResult.AccessC" - + "ontrolList\022R\n\ridentity_list\030\004 \001(\0132;.goog" - + "le.cloud.asset.v1.IamPolicyAnalysisResul" - + "t.IdentityList\022\026\n\016fully_explored\030\005 \001(\010\032m" - + "\n\010Resource\022\032\n\022full_resource_name\030\001 \001(\t\022E" - + "\n\016analysis_state\030\002 \001(\0132-.google.cloud.as" - + "set.v1.IamPolicyAnalysisState\032\205\001\n\006Access" - + "\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermission\030\002 \001(\tH\000\022E" - + "\n\016analysis_state\030\003 \001(\0132-.google.cloud.as" - + "set.v1.IamPolicyAnalysisStateB\016\n\014oneof_a" - + "ccess\032_\n\010Identity\022\014\n\004name\030\001 \001(\t\022E\n\016analy" - + "sis_state\030\002 \001(\0132-.google.cloud.asset.v1." - + "IamPolicyAnalysisState\0320\n\004Edge\022\023\n\013source" - + "_node\030\001 \001(\t\022\023\n\013target_node\030\002 \001(\t\032\277\002\n\021Acc" - + "essControlList\022J\n\tresources\030\001 \003(\01327.goog" - + "le.cloud.asset.v1.IamPolicyAnalysisResul" - + "t.Resource\022G\n\010accesses\030\002 \003(\01325.google.cl" - + "oud.asset.v1.IamPolicyAnalysisResult.Acc" - + "ess\022K\n\016resource_edges\030\003 \003(\01323.google.clo" - + "ud.asset.v1.IamPolicyAnalysisResult.Edge" - + "\022H\n\024condition_evaluation\030\004 \001(\0132*.google." - + "cloud.asset.v1.ConditionEvaluation\032\245\001\n\014I" - + "dentityList\022K\n\nidentities\030\001 \003(\01327.google" - + ".cloud.asset.v1.IamPolicyAnalysisResult." - + "Identity\022H\n\013group_edges\030\002 \003(\01323.google.c" - + "loud.asset.v1.IamPolicyAnalysisResult.Ed" - + "geB\230\001\n\031com.google.cloud.asset.v1B\nAssetP" - + "rotoP\001Z:google.golang.org/genproto/googl" - + "eapis/cloud/asset/v1;asset\370\001\001\252\002\025Google.C" - + "loud.Asset.V1\312\002\025Google\\Cloud\\Asset\\V1b\006p" - + "roto3" + + "ogle.cloud.asset.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ")google/cloud/orgpolicy/v1/orgpolicy.pro" + + "to\032(google/cloud/osconfig/v1/inventory.p" + + "roto\032\032google/iam/v1/policy.proto\032:google" + + "/identity/accesscontextmanager/v1/access" + + "_level.proto\032;google/identity/accesscont" + + "extmanager/v1/access_policy.proto\032?googl" + + "e/identity/accesscontextmanager/v1/servi" + + "ce_perimeter.proto\032\034google/protobuf/stru" + + "ct.proto\032\037google/protobuf/timestamp.prot" + + "o\032\025google/rpc/code.proto\"\365\002\n\rTemporalAss" + + "et\0221\n\006window\030\001 \001(\0132!.google.cloud.asset." + + "v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n\005asset\030" + + "\003 \001(\0132\034.google.cloud.asset.v1.Asset\022O\n\021p" + + "rior_asset_state\030\004 \001(\01624.google.cloud.as" + + "set.v1.TemporalAsset.PriorAssetState\0221\n\013" + + "prior_asset\030\005 \001(\0132\034.google.cloud.asset.v" + + "1.Asset\"o\n\017PriorAssetState\022!\n\035PRIOR_ASSE" + + "T_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020\001\022\013\n\007IN" + + "VALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DELETED\020\004" + + "\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\"\363\005\n\005Asset\022/" + + "\n\013update_time\030\013 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(" + + "\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.asset" + + ".v1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.googl" + + "e.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.go" + + "ogle.cloud.orgpolicy.v1.Policy\022N\n\raccess" + + "_policy\030\007 \001(\01325.google.identity.accessco" + + "ntextmanager.v1.AccessPolicyH\000\022L\n\014access" + + "_level\030\010 \001(\01324.google.identity.accesscon" + + "textmanager.v1.AccessLevelH\000\022V\n\021service_" + + "perimeter\030\t \001(\01329.google.identity.access" + + "contextmanager.v1.ServicePerimeterH\000\0229\n\014" + + "os_inventory\030\014 \001(\0132#.google.cloud.osconf" + + "ig.v1.Inventory\022@\n\016related_assets\030\r \001(\0132" + + "$.google.cloud.asset.v1.RelatedAssetsB\002\030" + + "\001\022:\n\rrelated_asset\030\017 \001(\0132#.google.cloud." + + "asset.v1.RelatedAsset\022\021\n\tancestors\030\n \003(\t" + + ":\'\352A$\n\037cloudasset.googleapis.com/Asset\022\001" + + "*B\027\n\025access_context_policy\"\262\001\n\010Resource\022" + + "\017\n\007version\030\001 \001(\t\022\036\n\026discovery_document_u" + + "ri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014reso" + + "urce_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006" + + " \001(\0132\027.google.protobuf.Struct\022\020\n\010locatio" + + "n\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027relationshi" + + "p_attributes\030\001 \001(\0132-.google.cloud.asset." + + "v1.RelationshipAttributes\0223\n\006assets\030\002 \003(" + + "\0132#.google.cloud.asset.v1.RelatedAsset:\002" + + "\030\001\"v\n\026RelationshipAttributes\022\014\n\004type\030\004 \001" + + "(\t\022\034\n\024source_resource_type\030\001 \001(\t\022\034\n\024targ" + + "et_resource_type\030\002 \001(\t\022\016\n\006action\030\003 \001(\t:\002" + + "\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(\tB$\372A!\n" + + "\037cloudasset.googleapis.com/Asset\022\022\n\nasse" + + "t_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031\n\021relat" + + "ionship_type\030\004 \001(\t\"\310\007\n\024ResourceSearchRes" + + "ult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\022\017\n" + + "\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024\n\014organ" + + "ization\030\022 \001(\t\022\024\n\014display_name\030\004 \001(\t\022\023\n\013d" + + "escription\030\005 \001(\t\022\020\n\010location\030\006 \001(\t\022G\n\006la" + + "bels\030\007 \003(\01327.google.cloud.asset.v1.Resou" + + "rceSearchResult.LabelsEntry\022\024\n\014network_t" + + "ags\030\010 \003(\t\022\023\n\007kms_key\030\n \001(\tB\002\030\001\022\020\n\010kms_ke" + + "ys\030\034 \003(\t\022/\n\013create_time\030\013 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\014 \001(\0132\032" + + ".google.protobuf.Timestamp\022\r\n\005state\030\r \001(" + + "\t\0226\n\025additional_attributes\030\t \001(\0132\027.googl" + + "e.protobuf.Struct\022!\n\031parent_full_resourc" + + "e_name\030\023 \001(\t\022E\n\023versioned_resources\030\020 \003(" + + "\0132(.google.cloud.asset.v1.VersionedResou" + + "rce\022C\n\022attached_resources\030\024 \003(\0132\'.google" + + ".cloud.asset.v1.AttachedResource\022U\n\rrela" + + "tionships\030\025 \003(\0132>.google.cloud.asset.v1." + + "ResourceSearchResult.RelationshipsEntry\022" + + "\020\n\010tag_keys\030\027 \003(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n" + + "\rtag_value_ids\030\032 \003(\t\022\031\n\021parent_asset_typ" + + "e\030g \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032]\n\022RelationshipsEntry\022\013\n\003" + + "key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud." + + "asset.v1.RelatedResources:\0028\001\"O\n\021Version" + + "edResource\022\017\n\007version\030\001 \001(\t\022)\n\010resource\030" + + "\002 \001(\0132\027.google.protobuf.Struct\"m\n\020Attach" + + "edResource\022\022\n\nasset_type\030\001 \001(\t\022E\n\023versio" + + "ned_resources\030\003 \003(\0132(.google.cloud.asset" + + ".v1.VersionedResource\"U\n\020RelatedResource" + + "s\022A\n\021related_resources\030\001 \003(\0132&.google.cl" + + "oud.asset.v1.RelatedResource\"A\n\017RelatedR" + + "esource\022\022\n\nasset_type\030\001 \001(\t\022\032\n\022full_reso" + + "urce_name\030\002 \001(\t\"\217\004\n\025IamPolicySearchResul" + + "t\022\020\n\010resource\030\001 \001(\t\022\022\n\nasset_type\030\005 \001(\t\022" + + "\017\n\007project\030\002 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014org" + + "anization\030\007 \001(\t\022%\n\006policy\030\003 \001(\0132\025.google" + + ".iam.v1.Policy\022M\n\013explanation\030\004 \001(\01328.go" + + "ogle.cloud.asset.v1.IamPolicySearchResul" + + "t.Explanation\032\241\002\n\013Explanation\022m\n\023matched" + + "_permissions\030\001 \003(\0132P.google.cloud.asset." + + "v1.IamPolicySearchResult.Explanation.Mat" + + "chedPermissionsEntry\032\"\n\013Permissions\022\023\n\013p" + + "ermissions\030\001 \003(\t\032\177\n\027MatchedPermissionsEn" + + "try\022\013\n\003key\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google" + + ".cloud.asset.v1.IamPolicySearchResult.Ex" + + "planation.Permissions:\0028\001\"G\n\026IamPolicyAn" + + "alysisState\022\036\n\004code\030\001 \001(\0162\020.google.rpc.C" + + "ode\022\r\n\005cause\030\002 \001(\t\"\306\001\n\023ConditionEvaluati" + + "on\022T\n\020evaluation_value\030\001 \001(\0162:.google.cl" + + "oud.asset.v1.ConditionEvaluation.Evaluat" + + "ionValue\"Y\n\017EvaluationValue\022 \n\034EVALUATIO" + + "N_VALUE_UNSPECIFIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE" + + "\020\002\022\017\n\013CONDITIONAL\020\003\"\253\t\n\027IamPolicyAnalysi" + + "sResult\022#\n\033attached_resource_full_name\030\001" + + " \001(\t\022+\n\013iam_binding\030\002 \001(\0132\026.google.iam.v" + + "1.Binding\022^\n\024access_control_lists\030\003 \003(\0132" + + "@.google.cloud.asset.v1.IamPolicyAnalysi" + + "sResult.AccessControlList\022R\n\ridentity_li" + + "st\030\004 \001(\0132;.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.IdentityList\022\026\n\016fully_e" + + "xplored\030\005 \001(\010\032m\n\010Resource\022\032\n\022full_resour" + + "ce_name\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tate\032\205\001\n\006Access\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermi" + + "ssion\030\002 \001(\tH\000\022E\n\016analysis_state\030\003 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tateB\016\n\014oneof_access\032_\n\010Identity\022\014\n\004name" + + "\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-.google." + + "cloud.asset.v1.IamPolicyAnalysisState\0320\n" + + "\004Edge\022\023\n\013source_node\030\001 \001(\t\022\023\n\013target_nod" + + "e\030\002 \001(\t\032\277\002\n\021AccessControlList\022J\n\tresourc" + + "es\030\001 \003(\01327.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.Resource\022G\n\010accesses\030\002 " + + "\003(\01325.google.cloud.asset.v1.IamPolicyAna" + + "lysisResult.Access\022K\n\016resource_edges\030\003 \003" + + "(\01323.google.cloud.asset.v1.IamPolicyAnal" + + "ysisResult.Edge\022H\n\024condition_evaluation\030" + + "\004 \001(\0132*.google.cloud.asset.v1.ConditionE" + + "valuation\032\245\001\n\014IdentityList\022K\n\nidentities" + + "\030\001 \003(\01327.google.cloud.asset.v1.IamPolicy" + + "AnalysisResult.Identity\022H\n\013group_edges\030\002" + + " \003(\01323.google.cloud.asset.v1.IamPolicyAn" + + "alysisResult.EdgeB\230\001\n\031com.google.cloud.a" + + "sset.v1B\nAssetProtoP\001Z:google.golang.org" + + "/genproto/googleapis/cloud/asset/v1;asse" + + "t\370\001\001\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cl" + + "oud\\Asset\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), com.google.cloud.osconfig.v1.Inventories.getDescriptor(), @@ -397,6 +399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "NetworkTags", "KmsKey", + "KmsKeys", "CreateTime", "UpdateTime", "State", @@ -600,6 +603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); com.google.cloud.osconfig.v1.Inventories.getDescriptor(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java index 35e4ee10167e..59d205474785 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java @@ -54,68 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AttachedResource( - 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(); - - assetType_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - versionedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - versionedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_AttachedResource_descriptor; @@ -288,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < versionedResources_.size(); i++) { output.writeMessage(3, versionedResources_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -304,7 +242,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, versionedResources_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -322,7 +260,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAssetType().equals(other.getAssetType())) return false; if (!getVersionedResourcesList().equals(other.getVersionedResourcesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,7 +277,7 @@ public int hashCode() { hash = (37 * hash) + VERSIONED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getVersionedResourcesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -469,19 +407,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.AttachedResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVersionedResourcesFieldBuilder(); - } } @java.lang.Override @@ -491,10 +420,11 @@ public Builder clear() { if (versionedResourcesBuilder_ == null) { versionedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + versionedResources_ = null; versionedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -613,7 +543,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AttachedResource other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -628,17 +558,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AttachedResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + com.google.cloud.asset.v1.VersionedResource m = + input.readMessage( + com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry); + if (versionedResourcesBuilder_ == null) { + ensureVersionedResourcesIsMutable(); + versionedResources_.add(m); + } else { + versionedResourcesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.AttachedResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1198,7 +1161,18 @@ public AttachedResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AttachedResource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java index 6ea0ce8d56cb..3d8acb44b532 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java @@ -55,102 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BatchGetAssetsHistoryRequest( - 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(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetNames_.add(s); - break; - } - case 24: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 34: - { - com.google.cloud.asset.v1.TimeWindow.Builder subBuilder = null; - if (readTimeWindow_ != null) { - subBuilder = readTimeWindow_.toBuilder(); - } - readTimeWindow_ = - input.readMessage( - com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTimeWindow_); - readTimeWindow_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = assetNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.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_BatchGetAssetsHistoryRequest_descriptor; @@ -564,7 +468,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -599,7 +503,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -623,7 +527,7 @@ public boolean equals(final java.lang.Object obj) { if (!getReadTimeWindow().equals(other.getReadTimeWindow())) return false; } if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -650,7 +554,7 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -780,17 +684,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -935,7 +832,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -950,18 +847,63 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetNamesIsMutable(); + assetNames_.add(s); + break; + } // case 18 + case 24: + { + contentType_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getReadTimeWindowFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1999,7 +1941,18 @@ public BatchGetAssetsHistoryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetAssetsHistoryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java index eae14325c866..3b12b5200907 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BatchGetAssetsHistoryResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage( - com.google.cloud.asset.v1.TemporalAsset.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - 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_BatchGetAssetsHistoryResponse_descriptor; @@ -207,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,7 +165,7 @@ public int getSerializedSize() { for (int i = 0; i < assets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, assets_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -236,7 +182,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) obj; if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,7 +197,7 @@ public int hashCode() { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -381,19 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } @java.lang.Override @@ -401,10 +338,11 @@ public Builder clear() { super.clear(); if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -519,7 +457,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -534,18 +472,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.TemporalAsset m = + input.readMessage( + com.google.cloud.asset.v1.TemporalAsset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -931,7 +895,18 @@ public BatchGetAssetsHistoryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetAssetsHistoryResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java index 13901f54353b..0862a32b34fd 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java @@ -22,8 +22,7 @@ * * *
    - * A request message for
    - * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    + * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} @@ -56,66 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BatchGetEffectiveIamPoliciesRequest( - 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(); - - scope_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - names_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - names_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - names_ = names_.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_BatchGetEffectiveIamPoliciesRequest_descriptor; @@ -303,7 +242,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -323,7 +262,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -341,7 +280,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScope().equals(other.getScope())) return false; if (!getNamesList().equals(other.getNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,7 +297,7 @@ public int hashCode() { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -463,8 +402,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A request message for
    -   * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +   * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} @@ -489,17 +427,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -609,7 +540,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesR } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -624,19 +555,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1048,7 +1004,18 @@ public BatchGetEffectiveIamPoliciesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetEffectiveIamPoliciesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java index a0e086b23c36..ff1d176cab29 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java @@ -22,8 +22,7 @@ * * *
    - * A response message for
    - * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    + * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} @@ -55,65 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BatchGetEffectiveIamPoliciesResponse( - 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 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - policyResults_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - policyResults_.add( - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - policyResults_ = java.util.Collections.unmodifiableList(policyResults_); - } - 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_BatchGetEffectiveIamPoliciesResponse_descriptor; @@ -140,11 +80,9 @@ public interface EffectiveIamPolicyOrBuilder *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * for which the
    -     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -     * are computed. This is one of the
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -     * the caller provides in the request.
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
          * 
    * * string full_resource_name = 1; @@ -158,11 +96,9 @@ public interface EffectiveIamPolicyOrBuilder *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * for which the
    -     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -     * are computed. This is one of the
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -     * the caller provides in the request.
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
          * 
    * * string full_resource_name = 1; @@ -175,24 +111,17 @@ public interface EffectiveIamPolicyOrBuilder * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -207,24 +136,17 @@ public interface EffectiveIamPolicyOrBuilder * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -237,24 +159,17 @@ public interface EffectiveIamPolicyOrBuilder * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -266,24 +181,17 @@ public interface EffectiveIamPolicyOrBuilder * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -299,24 +207,17 @@ public interface EffectiveIamPolicyOrBuilder * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -363,72 +264,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EffectiveIamPolicy( - 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(); - - fullResourceName_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo>(); - mutable_bitField0_ |= 0x00000001; - } - policies_.add( - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - } - 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_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; @@ -455,9 +290,7 @@ public interface PolicyInfoOrBuilder * * *
    -       * The full resource name the
    -       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -       * is directly attached to.
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; @@ -469,9 +302,7 @@ public interface PolicyInfoOrBuilder * * *
    -       * The full resource name the
    -       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -       * is directly attached to.
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; @@ -484,8 +315,7 @@ public interface PolicyInfoOrBuilder * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -497,8 +327,7 @@ public interface PolicyInfoOrBuilder * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -510,8 +339,7 @@ public interface PolicyInfoOrBuilder * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -553,67 +381,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PolicyInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - attachedResource_ = s; - break; - } - case 18: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - 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_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; @@ -637,9 +404,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -       * The full resource name the
    -       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -       * is directly attached to.
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; @@ -662,9 +427,7 @@ public java.lang.String getAttachedResource() { * * *
    -       * The full resource name the
    -       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -       * is directly attached to.
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; @@ -690,8 +453,7 @@ public com.google.protobuf.ByteString getAttachedResourceBytes() { * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -706,8 +468,7 @@ public boolean hasPolicy() { * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -722,8 +483,7 @@ public com.google.iam.v1.Policy getPolicy() { * * *
    -       * The IAM policy that's directly attached to the
    -       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; @@ -753,7 +513,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (policy_ != null) { output.writeMessage(2, getPolicy()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -768,7 +528,7 @@ public int getSerializedSize() { if (policy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -795,7 +555,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPolicy()) { if (!getPolicy().equals(other.getPolicy())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -812,7 +572,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -971,17 +731,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1109,7 +862,7 @@ public Builder mergeFrom( if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1124,22 +877,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attachedResource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1148,9 +922,7 @@ public Builder mergeFrom( * * *
    -         * The full resource name the
    -         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -         * is directly attached to.
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; @@ -1172,9 +944,7 @@ public java.lang.String getAttachedResource() { * * *
    -         * The full resource name the
    -         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -         * is directly attached to.
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; @@ -1196,9 +966,7 @@ public com.google.protobuf.ByteString getAttachedResourceBytes() { * * *
    -         * The full resource name the
    -         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -         * is directly attached to.
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; @@ -1219,9 +987,7 @@ public Builder setAttachedResource(java.lang.String value) { * * *
    -         * The full resource name the
    -         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -         * is directly attached to.
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; @@ -1238,9 +1004,7 @@ public Builder clearAttachedResource() { * * *
    -         * The full resource name the
    -         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -         * is directly attached to.
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; @@ -1269,8 +1033,7 @@ public Builder setAttachedResourceBytes(com.google.protobuf.ByteString value) { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1284,8 +1047,7 @@ public boolean hasPolicy() { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1303,8 +1065,7 @@ public com.google.iam.v1.Policy getPolicy() { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1326,8 +1087,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1346,8 +1106,7 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1371,8 +1130,7 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1392,8 +1150,7 @@ public Builder clearPolicy() { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1407,8 +1164,7 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1424,8 +1180,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * * *
    -         * The IAM policy that's directly attached to the
    -         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; @@ -1486,7 +1241,19 @@ public PolicyInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyInfo(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1515,11 +1282,9 @@ public com.google.protobuf.Parser getParserForType() { *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * for which the
    -     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -     * are computed. This is one of the
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -     * the caller provides in the request.
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
          * 
    * * string full_resource_name = 1; @@ -1544,11 +1309,9 @@ public java.lang.String getFullResourceName() { *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * for which the
    -     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -     * are computed. This is one of the
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -     * the caller provides in the request.
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
          * 
    * * string full_resource_name = 1; @@ -1577,24 +1340,17 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -1612,24 +1368,17 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -1648,24 +1397,17 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -1680,24 +1422,17 @@ public int getPoliciesCount() { * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -1714,24 +1449,17 @@ public int getPoliciesCount() { * * *
    -     * The effective policies for the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -     * These policies include the policy set on the
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -     * and those set on its parents and ancestors up to the
    -     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -     * Note that these policies are not filtered according to the resource type
    -     * of the
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
          * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies are hierarchically ordered by
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * starting from
    -     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
          * itself to its parents and ancestors, such that policies[i]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -     * is the child of policies[i+1]'s
    -     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -     * if policies[i+1] exists.
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * * @@ -1765,7 +1493,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < policies_.size(); i++) { output.writeMessage(2, policies_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1780,7 +1508,7 @@ public int getSerializedSize() { for (int i = 0; i < policies_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policies_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1800,7 +1528,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFullResourceName().equals(other.getFullResourceName())) return false; if (!getPoliciesList().equals(other.getPoliciesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1817,7 +1545,7 @@ public int hashCode() { hash = (37 * hash) + POLICIES_FIELD_NUMBER; hash = (53 * hash) + getPoliciesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1960,19 +1688,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPoliciesFieldBuilder(); - } } @java.lang.Override @@ -1982,10 +1701,11 @@ public Builder clear() { if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + policies_ = null; policiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2119,7 +1839,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2134,20 +1854,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2160,11 +1914,9 @@ public Builder mergeFrom( *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -       * for which the
    -       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -       * are computed. This is one of the
    -       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -       * the caller provides in the request.
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
            * 
    * * string full_resource_name = 1; @@ -2188,11 +1940,9 @@ public java.lang.String getFullResourceName() { *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -       * for which the
    -       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -       * are computed. This is one of the
    -       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -       * the caller provides in the request.
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
            * 
    * * string full_resource_name = 1; @@ -2216,11 +1966,9 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -       * for which the
    -       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -       * are computed. This is one of the
    -       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -       * the caller provides in the request.
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
            * 
    * * string full_resource_name = 1; @@ -2243,11 +1991,9 @@ public Builder setFullResourceName(java.lang.String value) { *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -       * for which the
    -       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -       * are computed. This is one of the
    -       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -       * the caller provides in the request.
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
            * 
    * * string full_resource_name = 1; @@ -2266,11 +2012,9 @@ public Builder clearFullResourceName() { *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -       * for which the
    -       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -       * are computed. This is one of the
    -       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -       * the caller provides in the request.
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
            * 
    * * string full_resource_name = 1; @@ -2317,24 +2061,17 @@ private void ensurePoliciesIsMutable() { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2355,24 +2092,17 @@ private void ensurePoliciesIsMutable() { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2390,24 +2120,17 @@ public int getPoliciesCount() { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2427,24 +2150,17 @@ public int getPoliciesCount() { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2472,24 +2188,17 @@ public Builder setPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2514,24 +2223,17 @@ public Builder setPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2558,24 +2260,17 @@ public Builder addPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2603,24 +2298,17 @@ public Builder addPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2644,24 +2332,17 @@ public Builder addPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2686,24 +2367,17 @@ public Builder addPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2729,24 +2403,17 @@ public Builder addAllPolicies( * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2767,24 +2434,17 @@ public Builder clearPolicies() { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2805,24 +2465,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2838,24 +2491,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2875,24 +2521,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2914,24 +2553,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2950,24 +2582,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -2987,24 +2612,17 @@ public Builder removePolicies(int index) { * * *
    -       * The effective policies for the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    -       * These policies include the policy set on the
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -       * and those set on its parents and ancestors up to the
    -       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -       * Note that these policies are not filtered according to the resource type
    -       * of the
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
            * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies are hierarchically ordered by
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * starting from
    -       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
            * itself to its parents and ancestors, such that policies[i]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -       * is the child of policies[i+1]'s
    -       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -       * if policies[i+1] exists.
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * * @@ -3078,7 +2696,19 @@ public EffectiveIamPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EffectiveIamPolicy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3108,10 +2738,9 @@ public com.google.protobuf.Parser getParserForType() { *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -3130,10 +2759,9 @@ public com.google.protobuf.Parser getParserForType() { *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -3154,10 +2782,9 @@ public com.google.protobuf.Parser getParserForType() { *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -3174,10 +2801,9 @@ public int getPolicyResultsCount() { *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -3195,10 +2821,9 @@ public int getPolicyResultsCount() { *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -3228,7 +2853,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < policyResults_.size(); i++) { output.writeMessage(2, policyResults_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3240,7 +2865,7 @@ public int getSerializedSize() { for (int i = 0; i < policyResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyResults_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3257,7 +2882,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) obj; if (!getPolicyResultsList().equals(other.getPolicyResultsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3272,7 +2897,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getPolicyResultsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3377,8 +3002,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A response message for
    -   * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +   * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} @@ -3403,19 +3027,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPolicyResultsFieldBuilder(); - } } @java.lang.Override @@ -3423,10 +3038,11 @@ public Builder clear() { super.clear(); if (policyResultsBuilder_ == null) { policyResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + policyResults_ = null; policyResultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3543,7 +3159,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesR } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3558,19 +3174,47 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.parser(), + extensionRegistry); + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(m); + } else { + policyResultsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3604,10 +3248,9 @@ private void ensurePolicyResultsIsMutable() { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3629,10 +3272,9 @@ private void ensurePolicyResultsIsMutable() { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3652,10 +3294,9 @@ public int getPolicyResultsCount() { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3676,10 +3317,9 @@ public int getPolicyResultsCount() { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3707,10 +3347,9 @@ public Builder setPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3736,10 +3375,9 @@ public Builder setPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3766,10 +3404,9 @@ public Builder addPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3797,10 +3434,9 @@ public Builder addPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3825,10 +3461,9 @@ public Builder addPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3854,10 +3489,9 @@ public Builder addPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3885,10 +3519,9 @@ public Builder addAllPolicyResults( *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3911,10 +3544,9 @@ public Builder clearPolicyResults() { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3937,10 +3569,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3957,10 +3588,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -3982,10 +3612,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -4009,10 +3638,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -4032,10 +3660,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -4056,10 +3683,9 @@ public Builder removePolicyResults(int index) { *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    -     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -     * When a resource does not have any effective IAM policies, its corresponding
    -     * policy_result will contain empty
    -     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * * @@ -4131,7 +3757,18 @@ public BatchGetEffectiveIamPoliciesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetEffectiveIamPoliciesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java index 8a5e5c2540f8..e78508e772f7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java @@ -29,10 +29,9 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -47,10 +46,9 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -65,10 +63,9 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -82,10 +79,9 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * @@ -103,10 +99,9 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    -   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -   * When a resource does not have any effective IAM policies, its corresponding
    -   * policy_result will contain empty
    -   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java index d3db2835dee3..2e4697a0b82e 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java @@ -53,85 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BigQueryDestination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - table_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - case 34: - { - com.google.cloud.asset.v1.PartitionSpec.Builder subBuilder = null; - if (partitionSpec_ != null) { - subBuilder = partitionSpec_.toBuilder(); - } - partitionSpec_ = - input.readMessage( - com.google.cloud.asset.v1.PartitionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionSpec_); - partitionSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - separateTablesPerAssetType_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_BigQueryDestination_descriptor; @@ -444,7 +365,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (separateTablesPerAssetType_ != false) { output.writeBool(5, separateTablesPerAssetType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -468,7 +389,7 @@ public int getSerializedSize() { if (separateTablesPerAssetType_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -492,7 +413,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPartitionSpec().equals(other.getPartitionSpec())) return false; } if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -515,7 +436,7 @@ public int hashCode() { } hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -644,17 +565,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.BigQueryDestination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -776,7 +690,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BigQueryDestination other) { if (other.getSeparateTablesPerAssetType() != false) { setSeparateTablesPerAssetType(other.getSeparateTablesPerAssetType()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -791,17 +705,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BigQueryDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + + break; + } // case 24 + case 34: + { + input.readMessage(getPartitionSpecFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + separateTablesPerAssetType_ = input.readBool(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.BigQueryDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1588,7 +1546,18 @@ public BigQueryDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java index 2d821fe3fb7f..efe98417713b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ConditionEvaluation( - 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 8: - { - int rawValue = input.readEnum(); - - evaluationValue_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; @@ -356,7 +310,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, evaluationValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -371,7 +325,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -388,7 +342,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.ConditionEvaluation) obj; if (evaluationValue_ != other.evaluationValue_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,7 +355,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVALUATION_VALUE_FIELD_NUMBER; hash = (53 * hash) + evaluationValue_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -530,17 +484,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ConditionEvaluation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -628,7 +575,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ConditionEvaluation other) { if (other.evaluationValue_ != 0) { setEvaluationValueValue(other.getEvaluationValueValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -643,17 +590,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ConditionEvaluation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + evaluationValue_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ConditionEvaluation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -783,7 +750,18 @@ public ConditionEvaluation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConditionEvaluation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java index f05fab727f45..2c455c809c7f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java @@ -53,73 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - feedId_ = s; - break; - } - case 26: - { - com.google.cloud.asset.v1.Feed.Builder subBuilder = null; - if (feed_ != null) { - subBuilder = feed_.toBuilder(); - } - feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feed_); - feed_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_CreateFeedRequest_descriptor; @@ -249,8 +182,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
        * 
    @@ -267,8 +201,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
        * 
    @@ -285,8 +220,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
        * 
    @@ -321,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (feed_ != null) { output.writeMessage(3, getFeed()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -339,7 +275,7 @@ public int getSerializedSize() { if (feed_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -361,7 +297,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFeed()) { if (!getFeed().equals(other.getFeed())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,7 +316,7 @@ public int hashCode() { hash = (37 * hash) + FEED_FIELD_NUMBER; hash = (53 * hash) + getFeed().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -509,17 +445,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.CreateFeedRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -629,7 +558,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.CreateFeedRequest other) { if (other.hasFeed()) { mergeFeed(other.getFeed()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -644,17 +573,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.CreateFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + feedId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.CreateFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -905,8 +866,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
          * 
    @@ -922,8 +884,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
          * 
    @@ -943,8 +906,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
          * 
    @@ -968,8 +932,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
          * 
    @@ -990,8 +955,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
          * 
    @@ -1016,8 +982,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
          * 
    @@ -1039,8 +1006,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
          * 
    @@ -1056,8 +1024,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
          * 
    @@ -1075,8 +1044,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
          * 
    @@ -1132,7 +1102,18 @@ public CreateFeedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeedRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java index 8b873ad91afc..50a62037baab 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java +++ b/java-asset/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/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java index 7bb028864cc6..fdd1bd238ee0 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.SavedQuery.Builder subBuilder = null; - if (savedQuery_ != null) { - subBuilder = savedQuery_.toBuilder(); - } - savedQuery_ = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(savedQuery_); - savedQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedQueryId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_CreateSavedQueryRequest_descriptor; @@ -143,11 +74,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * * @@ -172,11 +103,11 @@ public java.lang.String getParent() { * * *
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * * @@ -204,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -222,8 +153,8 @@ public boolean hasSavedQuery() { * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -242,8 +173,8 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -261,9 +192,9 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { * * *
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    @@ -290,9 +221,9 @@ public java.lang.String getSavedQueryId() {
        *
        *
        * 
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    @@ -339,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedQueryId_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -357,7 +288,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedQueryId_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -379,7 +310,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getSavedQuery().equals(other.getSavedQuery())) return false;
         }
         if (!getSavedQueryId().equals(other.getSavedQueryId())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -398,7 +329,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + SAVED_QUERY_ID_FIELD_NUMBER;
         hash = (53 * hash) + getSavedQueryId().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -527,17 +458,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.CreateSavedQueryRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -648,7 +572,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.CreateSavedQueryRequest other
             savedQueryId_ = other.savedQueryId_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -663,18 +587,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.CreateSavedQueryRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getSavedQueryFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                savedQueryId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.CreateSavedQueryRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -683,11 +638,11 @@ public Builder mergeFrom(
          *
          *
          * 
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * * @@ -711,11 +666,11 @@ public java.lang.String getParent() { * * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * * @@ -739,11 +694,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * * @@ -766,11 +721,11 @@ public Builder setParent(java.lang.String value) { * * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * * @@ -789,11 +744,11 @@ public Builder clearParent() { * * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * * @@ -824,8 +779,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -841,8 +796,8 @@ public boolean hasSavedQuery() { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -864,8 +819,8 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -889,8 +844,8 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -911,8 +866,8 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builde * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -940,8 +895,8 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -963,8 +918,8 @@ public Builder clearSavedQuery() { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -980,8 +935,8 @@ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -1001,8 +956,8 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { * * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * * @@ -1031,9 +986,9 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { * * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1059,9 +1014,9 @@ public java.lang.String getSavedQueryId() {
          *
          *
          * 
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1087,9 +1042,9 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() {
          *
          *
          * 
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1114,9 +1069,9 @@ public Builder setSavedQueryId(java.lang.String value) {
          *
          *
          * 
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1137,9 +1092,9 @@ public Builder clearSavedQueryId() {
          *
          *
          * 
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1194,7 +1149,18 @@ public CreateSavedQueryRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new CreateSavedQueryRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java
    index 651097a14934..1d42d61f934b 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java
    @@ -27,11 +27,11 @@ public interface CreateSavedQueryRequestOrBuilder
        *
        *
        * 
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * * @@ -45,11 +45,11 @@ public interface CreateSavedQueryRequestOrBuilder * * *
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * * @@ -64,8 +64,8 @@ public interface CreateSavedQueryRequestOrBuilder * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -79,8 +79,8 @@ public interface CreateSavedQueryRequestOrBuilder * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -94,8 +94,8 @@ public interface CreateSavedQueryRequestOrBuilder * * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * * @@ -108,9 +108,9 @@ public interface CreateSavedQueryRequestOrBuilder * * *
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    @@ -126,9 +126,9 @@ public interface CreateSavedQueryRequestOrBuilder
        *
        *
        * 
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java
    index e8556cb77723..8383be811420 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java
    @@ -44,52 +44,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteFeedRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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_DeleteFeedRequest_descriptor;
    @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -193,7 +147,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1.DeleteFeedRequest) obj;
     
         if (!getName().equals(other.getName())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -223,7 +177,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + NAME_FIELD_NUMBER;
         hash = (53 * hash) + getName().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -344,17 +298,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.DeleteFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -443,7 +390,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.DeleteFeedRequest other) {
             name_ = other.name_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -458,17 +405,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.DeleteFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.DeleteFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -635,7 +602,18 @@ public DeleteFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java
    index 87acf06bf1af..684f9e751bfc 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteSavedQueryRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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_DeleteSavedQueryRequest_descriptor;
    @@ -119,8 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        *
        * 
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
    @@ -148,8 +101,7 @@ public java.lang.String getName() {
        *
        *
        * 
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
    @@ -191,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -203,7 +155,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -220,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1.DeleteSavedQueryRequest) obj;
     
         if (!getName().equals(other.getName())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -233,7 +185,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + NAME_FIELD_NUMBER;
         hash = (53 * hash) + getName().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -362,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.DeleteSavedQueryRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -462,7 +407,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.DeleteSavedQueryRequest other
             name_ = other.name_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -477,18 +422,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.DeleteSavedQueryRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.DeleteSavedQueryRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -497,8 +461,7 @@ public Builder mergeFrom(
          *
          *
          * 
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
    @@ -525,8 +488,7 @@ public java.lang.String getName() {
          *
          *
          * 
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
    @@ -553,8 +515,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          *
          *
          * 
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
    @@ -580,8 +541,7 @@ public Builder setName(java.lang.String value) {
          *
          *
          * 
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
    @@ -603,8 +563,7 @@ public Builder clearName() {
          *
          *
          * 
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
    @@ -660,7 +619,18 @@ public DeleteSavedQueryRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteSavedQueryRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java
    index eba137a41a0a..ba108d449445 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java
    @@ -27,8 +27,7 @@ public interface DeleteSavedQueryRequestOrBuilder
        *
        *
        * 
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
    @@ -45,8 +44,7 @@ public interface DeleteSavedQueryRequestOrBuilder
        *
        *
        * 
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java
    index 5d34a1eb0606..6dc1302b7995 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java
    @@ -55,117 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ExportAssetsRequest(
    -      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();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1.OutputConfig.Builder subBuilder = null;
    -              if (outputConfig_ != null) {
    -                subBuilder = outputConfig_.toBuilder();
    -              }
    -              outputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.OutputConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputConfig_);
    -                outputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                relationshipTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              relationshipTypes_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        relationshipTypes_ = relationshipTypes_.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_ExportAssetsRequest_descriptor;
    @@ -455,8 +344,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.
        * 
    * * @@ -473,8 +361,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.
        * 
    * * @@ -493,8 +380,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.
        * 
    * * @@ -656,7 +542,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -694,7 +580,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -722,7 +608,7 @@ public boolean equals(final java.lang.Object obj) { if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -753,7 +639,7 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -882,17 +768,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ExportAssetsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1050,7 +929,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsRequest other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1065,17 +944,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ExportAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ExportAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1818,8 +1749,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.
          * 
    * * @@ -1835,8 +1765,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.
          * 
    * * @@ -1858,8 +1787,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.
          * 
    * * @@ -1883,8 +1811,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.
          * 
    * * @@ -1905,8 +1832,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.
          * 
    * * @@ -1934,8 +1860,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.
          * 
    * * @@ -1957,8 +1882,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.
          * 
    * * @@ -1974,8 +1898,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.
          * 
    * * @@ -1995,8 +1918,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.
          * 
    * * @@ -2346,7 +2268,18 @@ public ExportAssetsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAssetsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index 01284605acd9..870a0fdc933d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -239,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.
        * 
    * * @@ -254,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.
        * 
    * * @@ -269,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/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java index 871329111603..7c1e531947dd 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java +++ b/java-asset/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} @@ -54,92 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ExportAssetsResponse( - 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.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.asset.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - 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: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_ExportAssetsResponse_descriptor; @@ -332,7 +244,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputResult_ != null) { output.writeMessage(3, getOutputResult()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -350,7 +262,7 @@ public int getSerializedSize() { if (outputResult_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -378,7 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (hasOutputResult()) { if (!getOutputResult().equals(other.getOutputResult())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,7 +313,7 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER; hash = (53 * hash) + getOutputResult().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -506,10 +418,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} @@ -534,17 +444,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ExportAssetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -668,7 +571,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsResponse other) { if (other.hasOutputResult()) { mergeOutputResult(other.getOutputResult()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -683,17 +586,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ExportAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getOutputResultFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ExportAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1314,7 +1249,18 @@ public ExportAssetsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAssetsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java index 54f0957682ab..e2b6ab5a8768 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java @@ -60,129 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Feed( - 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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetNames_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 42: - { - com.google.cloud.asset.v1.FeedOutputConfig.Builder subBuilder = null; - if (feedOutputConfig_ != null) { - subBuilder = feedOutputConfig_.toBuilder(); - } - feedOutputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.FeedOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feedOutputConfig_); - feedOutputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.type.Expr.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); - } - condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = assetNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - relationshipTypes_ = relationshipTypes_.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_Feed_descriptor; @@ -750,7 +627,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -796,7 +673,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -824,7 +701,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCondition().equals(other.getCondition())) return false; } if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -859,7 +736,7 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -990,17 +867,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.Feed.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1174,7 +1044,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Feed other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1189,17 +1059,77 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.Feed parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetNamesIsMutable(); + assetNames_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage( + getFeedOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.Feed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2677,7 +2607,18 @@ public Feed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Feed(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java index b117cbc08f7b..e1964247c18c 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java @@ -50,62 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FeedOutputConfig( - 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.PubsubDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.PubsubDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.PubsubDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.PubsubDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_FeedOutputConfig_descriptor; @@ -233,7 +177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -247,7 +191,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -271,7 +215,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,7 +234,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -419,22 +363,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.FeedOutputConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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(); + if (pubsubDestinationBuilder_ != null) { + pubsubDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.FeedOutputConfig other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,17 +487,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.FeedOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPubsubDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.FeedOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -817,7 +778,18 @@ public FeedOutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FeedOutputConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java index 1dce75f52d77..8fd6eb12cf2a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java @@ -50,59 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GcsDestination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 2; - objectUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_GcsDestination_descriptor; @@ -370,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (objectUriCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -385,7 +332,7 @@ public int getSerializedSize() { if (objectUriCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -411,7 +358,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,7 +381,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -563,17 +510,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.GcsDestination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -684,7 +624,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GcsDestination other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -699,17 +639,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GcsDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 2; + objectUri_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1117,7 +1085,18 @@ public GcsDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java index 0aa88585c5c0..9090ccbed234 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java @@ -52,59 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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; @@ -202,7 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,7 +166,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -236,7 +183,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.GcsOutputResult) obj; if (!getUrisList().equals(other.getUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,7 +198,7 @@ public int hashCode() { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -380,17 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.GcsOutputResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -490,7 +430,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GcsOutputResult other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -505,17 +445,38 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GcsOutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -730,7 +691,18 @@ public GcsOutputResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsOutputResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java index c99beadb07af..b5428fcb0f9d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_GetFeedRequest_descriptor; @@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +155,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -217,7 +171,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.asset.v1.GetFeedRequest other = (com.google.cloud.asset.v1.GetFeedRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,7 +184,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.GetFeedRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -458,7 +405,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GetFeedRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -473,17 +420,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GetFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GetFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +617,18 @@ public GetFeedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeedRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java index 98ae2dbb9a04..049c25491536 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_GetSavedQueryRequest_descriptor; @@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +155,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.GetSavedQueryRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,7 +185,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -360,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.GetSavedQueryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GetSavedQueryRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,17 +421,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GetSavedQueryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GetSavedQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -651,7 +618,18 @@ public GetSavedQueryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSavedQueryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java index a222d55a920c..6999aa4a308a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java @@ -50,93 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IamPolicyAnalysisOutputConfig( - 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.IamPolicyAnalysisOutputConfig.GcsDestination.Builder - subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_IamPolicyAnalysisOutputConfig_descriptor; @@ -161,8 +74,8 @@ public interface GcsDestinationOrBuilder * * *
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -180,8 +93,8 @@ public interface GcsDestinationOrBuilder
          *
          *
          * 
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -230,52 +143,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private GcsDestination(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                uri_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor;
    @@ -297,8 +164,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          *
          *
          * 
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -327,8 +194,8 @@ public java.lang.String getUri() {
          *
          *
          * 
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -371,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -383,7 +250,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -401,7 +268,7 @@ public boolean equals(final java.lang.Object obj) {
               (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj;
     
           if (!getUri().equals(other.getUri())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -414,7 +281,7 @@ public int hashCode() {
           hash = (19 * hash) + getDescriptor().hashCode();
           hash = (37 * hash) + URI_FIELD_NUMBER;
           hash = (53 * hash) + getUri().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -549,17 +416,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -658,7 +518,7 @@ public Builder mergeFrom(
               uri_ = other.uri_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -673,19 +533,37 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  uri_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -694,8 +572,8 @@ public Builder mergeFrom(
            *
            *
            * 
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -723,8 +601,8 @@ public java.lang.String getUri() {
            *
            *
            * 
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -752,8 +630,8 @@ public com.google.protobuf.ByteString getUriBytes() {
            *
            *
            * 
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -780,8 +658,8 @@ public Builder setUri(java.lang.String value) {
            *
            *
            * 
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -804,8 +682,8 @@ public Builder clearUri() {
            *
            *
            * 
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -866,7 +744,19 @@ public GcsDestination parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new GcsDestination(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -895,10 +785,9 @@ public interface BigQueryDestinationOrBuilder
          *
          *
          * 
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -910,10 +799,9 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -926,9 +814,8 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -945,9 +832,8 @@ public interface BigQueryDestinationOrBuilder
          *
          *
          * 
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -995,8 +881,8 @@ public interface BigQueryDestinationOrBuilder
          *
          *
          * 
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1017,8 +903,8 @@ public interface BigQueryDestinationOrBuilder
          *
          *
          * 
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1073,73 +959,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private BigQueryDestination(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                dataset_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                tablePrefix_ = s;
    -                break;
    -              }
    -            case 24:
    -              {
    -                int rawValue = input.readEnum();
    -
    -                partitionKey_ = rawValue;
    -                break;
    -              }
    -            case 34:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                writeDisposition_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor;
    @@ -1310,10 +1129,9 @@ private PartitionKey(int value) {
          *
          *
          * 
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1336,10 +1154,9 @@ public java.lang.String getDataset() { * * *
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1365,9 +1182,8 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1395,9 +1211,8 @@ public java.lang.String getTablePrefix() {
          *
          *
          * 
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1474,8 +1289,8 @@ public int getPartitionKeyValue() {
          *
          *
          * 
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1507,8 +1322,8 @@ public java.lang.String getWriteDisposition() {
          *
          *
          * 
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1566,7 +1381,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writeDisposition_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -1590,7 +1405,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writeDisposition_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -1611,7 +1426,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getTablePrefix().equals(other.getTablePrefix())) return false;
           if (partitionKey_ != other.partitionKey_) return false;
           if (!getWriteDisposition().equals(other.getWriteDisposition())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -1630,7 +1445,7 @@ public int hashCode() {
           hash = (53 * hash) + partitionKey_;
           hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER;
           hash = (53 * hash) + getWriteDisposition().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -1770,17 +1585,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -1901,7 +1709,7 @@ public Builder mergeFrom(
               writeDisposition_ = other.writeDisposition_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -1916,20 +1724,55 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parsedMessage =
    -            null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  dataset_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  tablePrefix_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 18
    +              case 24:
    +                {
    +                  partitionKey_ = input.readEnum();
    +
    +                  break;
    +                } // case 24
    +              case 34:
    +                {
    +                  writeDisposition_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 34
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1938,10 +1781,9 @@ public Builder mergeFrom(
            *
            *
            * 
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1963,10 +1805,9 @@ public java.lang.String getDataset() { * * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1988,10 +1829,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2012,10 +1852,9 @@ public Builder setDataset(java.lang.String value) { * * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2032,10 +1871,9 @@ public Builder clearDataset() { * * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2059,9 +1897,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2088,9 +1925,8 @@ public java.lang.String getTablePrefix() {
            *
            *
            * 
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2117,9 +1953,8 @@ public com.google.protobuf.ByteString getTablePrefixBytes() {
            *
            *
            * 
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2145,9 +1980,8 @@ public Builder setTablePrefix(java.lang.String value) {
            *
            *
            * 
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2169,9 +2003,8 @@ public Builder clearTablePrefix() {
            *
            *
            * 
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2310,8 +2143,8 @@ public Builder clearPartitionKey() {
            *
            *
            * 
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2342,8 +2175,8 @@ public java.lang.String getWriteDisposition() {
            *
            *
            * 
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2374,8 +2207,8 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() {
            *
            *
            * 
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2405,8 +2238,8 @@ public Builder setWriteDisposition(java.lang.String value) {
            *
            *
            * 
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2432,8 +2265,8 @@ public Builder clearWriteDisposition() {
            *
            *
            * 
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2497,7 +2330,19 @@ public BigQueryDestination parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new BigQueryDestination(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -2709,7 +2554,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
               (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
                   destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -2732,7 +2577,7 @@ public int getSerializedSize() {
                   (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
                       destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -2759,7 +2604,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -2782,7 +2627,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -2912,22 +2757,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         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();
    +      if (gcsDestinationBuilder_ != null) {
    +        gcsDestinationBuilder_.clear();
    +      }
    +      if (bigqueryDestinationBuilder_ != null) {
    +        bigqueryDestinationBuilder_.clear();
    +      }
           destinationCase_ = 0;
           destination_ = null;
           return this;
    @@ -3038,7 +2882,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -3053,18 +2897,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 1;
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(
    +                    getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 2;
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -3606,7 +3476,18 @@ public IamPolicyAnalysisOutputConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new IamPolicyAnalysisOutputConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java
    index 4e7987d6f478..571b1c14833f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java
    @@ -52,141 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private IamPolicyAnalysisQuery(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              scope_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder subBuilder =
    -                  null;
    -              if (resourceSelector_ != null) {
    -                subBuilder = resourceSelector_.toBuilder();
    -              }
    -              resourceSelector_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resourceSelector_);
    -                resourceSelector_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder subBuilder =
    -                  null;
    -              if (identitySelector_ != null) {
    -                subBuilder = identitySelector_.toBuilder();
    -              }
    -              identitySelector_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(identitySelector_);
    -                identitySelector_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder subBuilder =
    -                  null;
    -              if (accessSelector_ != null) {
    -                subBuilder = accessSelector_.toBuilder();
    -              }
    -              accessSelector_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(accessSelector_);
    -                accessSelector_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder subBuilder = null;
    -              if (options_ != null) {
    -                subBuilder = options_.toBuilder();
    -              }
    -              options_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(options_);
    -                options_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder subBuilder =
    -                  null;
    -              if (conditionContext_ != null) {
    -                subBuilder = conditionContext_.toBuilder();
    -              }
    -              conditionContext_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(conditionContext_);
    -                conditionContext_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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_IamPolicyAnalysisQuery_descriptor;
    @@ -274,52 +139,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private ResourceSelector(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                fullResourceName_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    @@ -407,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -419,7 +238,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -436,7 +255,7 @@ public boolean equals(final java.lang.Object obj) {
               (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) obj;
     
           if (!getFullResourceName().equals(other.getFullResourceName())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -449,7 +268,7 @@ public int hashCode() {
           hash = (19 * hash) + getDescriptor().hashCode();
           hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER;
           hash = (53 * hash) + getFullResourceName().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -585,17 +404,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -692,7 +504,7 @@ public Builder mergeFrom(
               fullResourceName_ = other.fullResourceName_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -707,19 +519,37 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  fullResourceName_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -879,7 +709,19 @@ public ResourceSelector parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new ResourceSelector(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -983,52 +825,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private IdentitySelector(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                identity_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    @@ -1128,7 +924,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -1140,7 +936,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -1157,7 +953,7 @@ public boolean equals(final java.lang.Object obj) {
               (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) obj;
     
           if (!getIdentity().equals(other.getIdentity())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -1170,7 +966,7 @@ public int hashCode() {
           hash = (19 * hash) + getDescriptor().hashCode();
           hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
           hash = (53 * hash) + getIdentity().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -1306,17 +1102,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -1413,7 +1202,7 @@ public Builder mergeFrom(
               identity_ = other.identity_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -1428,19 +1217,37 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  identity_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1630,7 +1437,19 @@ public IdentitySelector parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new IdentitySelector(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -1796,72 +1615,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private AccessSelector(
    -        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)) {
    -                  roles_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                roles_.add(s);
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                  permissions_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000002;
    -                }
    -                permissions_.add(s);
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -          roles_ = roles_.getUnmodifiableView();
    -        }
    -        if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -          permissions_ = permissions_.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_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    @@ -2019,7 +1772,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           for (int i = 0; i < permissions_.size(); i++) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 2, permissions_.getRaw(i));
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -2044,7 +1797,7 @@ public int getSerializedSize() {
             size += dataSize;
             size += 1 * getPermissionsList().size();
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -2062,7 +1815,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (!getRolesList().equals(other.getRolesList())) return false;
           if (!getPermissionsList().equals(other.getPermissionsList())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -2081,7 +1834,7 @@ public int hashCode() {
             hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
             hash = (53 * hash) + getPermissionsList().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -2219,17 +1972,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -2352,7 +2098,7 @@ public Builder mergeFrom(
               }
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -2367,19 +2113,45 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureRolesIsMutable();
    +                  roles_.add(s);
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensurePermissionsIsMutable();
    +                  permissions_.add(s);
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -2756,7 +2528,19 @@ public AccessSelector parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new AccessSelector(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -2787,10 +2571,9 @@ public interface OptionsOrBuilder
          * 
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    -     * If
    -     * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -     * is specified, the identity in the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +     * identity in the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * If true, the default max expansion per group is 1000 for
          * AssetService.AnalyzeIamPolicy][].
          * Default is false.
    @@ -2808,10 +2591,9 @@ public interface OptionsOrBuilder
          * 
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    -     * If
    -     * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -     * is specified, the access section of the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +     * section of the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * Default is false.
          * 
    * @@ -2825,21 +2607,19 @@ public interface OptionsOrBuilder * * *
    -     * Optional. If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is not specified, the resource section of the result will expand any
    -     * resource attached to an IAM policy to include resources lower in the
    -     * resource hierarchy.
    +     * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +     * specified, the resource section of the result will expand any resource
    +     * attached to an IAM policy to include resources lower in the resource
    +     * hierarchy.
          * For example, if the request analyzes for which resources user A has
          * permission P, and the results include an IAM policy with P on a GCP
          * folder, the results will also include resources in that folder with
          * permission P.
    -     * If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is specified, the resource section of the result will expand the
    -     * specified resource to include resources lower in the resource hierarchy.
    -     * Only project or lower resources are supported. Folder and organization
    -     * resource cannot be used together with this option.
    +     * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +     * the resource section of the result will expand the specified resource to
    +     * include resources lower in the resource hierarchy. Only project or
    +     * lower resources are supported. Folder and organization resource cannot be
    +     * used together with this option.
          * For example, if the request analyzes for which users have permission P on
          * a GCP project with this option enabled, the results will include all
          * users who have permission P on that project or any lower resource.
    @@ -2859,8 +2639,9 @@ public interface OptionsOrBuilder
          *
          *
          * 
    -     * Optional. If true, the result will output the relevant parent/child
    -     * relationships between resources. Default is false.
    +     * Optional. If true, the result will output the relevant parent/child relationships
    +     * between resources.
    +     * Default is false.
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2873,9 +2654,9 @@ public interface OptionsOrBuilder * * *
    -     * Optional. If true, the result will output the relevant membership
    -     * relationships between groups and other groups, and between groups and
    -     * principals. Default is false.
    +     * Optional. If true, the result will output the relevant membership relationships
    +     * between groups and other groups, and between groups and principals.
    +     * Default is false.
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2888,12 +2669,11 @@ public interface OptionsOrBuilder * * *
    -     * Optional. If true, the response will include access analysis from
    -     * identities to resources via service account impersonation. This is a very
    -     * expensive operation, because many derived queries will be executed. We
    -     * highly recommend you use
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc instead.
    +     * Optional. If true, the response will include access analysis from identities to
    +     * resources via service account impersonation. This is a very expensive
    +     * operation, because many derived queries will be executed. We highly
    +     * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +     * instead.
          * For example, if the request analyzes for which resources user A has
          * permission P, and there's an IAM policy states user A has
          * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -2958,75 +2738,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Options(
    -        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 8:
    -              {
    -                expandGroups_ = input.readBool();
    -                break;
    -              }
    -            case 16:
    -              {
    -                expandRoles_ = input.readBool();
    -                break;
    -              }
    -            case 24:
    -              {
    -                expandResources_ = input.readBool();
    -                break;
    -              }
    -            case 32:
    -              {
    -                outputResourceEdges_ = input.readBool();
    -                break;
    -              }
    -            case 40:
    -              {
    -                outputGroupEdges_ = input.readBool();
    -                break;
    -              }
    -            case 48:
    -              {
    -                analyzeServiceAccountImpersonation_ = input.readBool();
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisQuery_Options_descriptor;
    @@ -3050,10 +2761,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    -     * If
    -     * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -     * is specified, the identity in the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +     * identity in the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * If true, the default max expansion per group is 1000 for
          * AssetService.AnalyzeIamPolicy][].
          * Default is false.
    @@ -3076,10 +2786,9 @@ public boolean getExpandGroups() {
          * 
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    -     * If
    -     * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -     * is specified, the access section of the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +     * section of the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * Default is false.
          * 
    * @@ -3098,21 +2807,19 @@ public boolean getExpandRoles() { * * *
    -     * Optional. If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is not specified, the resource section of the result will expand any
    -     * resource attached to an IAM policy to include resources lower in the
    -     * resource hierarchy.
    +     * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +     * specified, the resource section of the result will expand any resource
    +     * attached to an IAM policy to include resources lower in the resource
    +     * hierarchy.
          * For example, if the request analyzes for which resources user A has
          * permission P, and the results include an IAM policy with P on a GCP
          * folder, the results will also include resources in that folder with
          * permission P.
    -     * If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is specified, the resource section of the result will expand the
    -     * specified resource to include resources lower in the resource hierarchy.
    -     * Only project or lower resources are supported. Folder and organization
    -     * resource cannot be used together with this option.
    +     * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +     * the resource section of the result will expand the specified resource to
    +     * include resources lower in the resource hierarchy. Only project or
    +     * lower resources are supported. Folder and organization resource cannot be
    +     * used together with this option.
          * For example, if the request analyzes for which users have permission P on
          * a GCP project with this option enabled, the results will include all
          * users who have permission P on that project or any lower resource.
    @@ -3137,8 +2844,9 @@ public boolean getExpandResources() {
          *
          *
          * 
    -     * Optional. If true, the result will output the relevant parent/child
    -     * relationships between resources. Default is false.
    +     * Optional. If true, the result will output the relevant parent/child relationships
    +     * between resources.
    +     * Default is false.
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3156,9 +2864,9 @@ public boolean getOutputResourceEdges() { * * *
    -     * Optional. If true, the result will output the relevant membership
    -     * relationships between groups and other groups, and between groups and
    -     * principals. Default is false.
    +     * Optional. If true, the result will output the relevant membership relationships
    +     * between groups and other groups, and between groups and principals.
    +     * Default is false.
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3176,12 +2884,11 @@ public boolean getOutputGroupEdges() { * * *
    -     * Optional. If true, the response will include access analysis from
    -     * identities to resources via service account impersonation. This is a very
    -     * expensive operation, because many derived queries will be executed. We
    -     * highly recommend you use
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc instead.
    +     * Optional. If true, the response will include access analysis from identities to
    +     * resources via service account impersonation. This is a very expensive
    +     * operation, because many derived queries will be executed. We highly
    +     * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +     * instead.
          * For example, if the request analyzes for which resources user A has
          * permission P, and there's an IAM policy states user A has
          * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -3249,7 +2956,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (analyzeServiceAccountImpersonation_ != false) {
             output.writeBool(6, analyzeServiceAccountImpersonation_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -3278,7 +2985,7 @@ public int getSerializedSize() {
                 com.google.protobuf.CodedOutputStream.computeBoolSize(
                     6, analyzeServiceAccountImpersonation_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -3301,7 +3008,7 @@ public boolean equals(final java.lang.Object obj) {
           if (getOutputGroupEdges() != other.getOutputGroupEdges()) return false;
           if (getAnalyzeServiceAccountImpersonation() != other.getAnalyzeServiceAccountImpersonation())
             return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -3326,7 +3033,7 @@ public int hashCode() {
           hash =
               (53 * hash)
                   + com.google.protobuf.Internal.hashBoolean(getAnalyzeServiceAccountImpersonation());
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -3458,17 +3165,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -3589,7 +3289,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Option
             if (other.getAnalyzeServiceAccountImpersonation() != false) {
               setAnalyzeServiceAccountImpersonation(other.getAnalyzeServiceAccountImpersonation());
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -3604,18 +3304,67 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 8:
    +                {
    +                  expandGroups_ = input.readBool();
    +
    +                  break;
    +                } // case 8
    +              case 16:
    +                {
    +                  expandRoles_ = input.readBool();
    +
    +                  break;
    +                } // case 16
    +              case 24:
    +                {
    +                  expandResources_ = input.readBool();
    +
    +                  break;
    +                } // case 24
    +              case 32:
    +                {
    +                  outputResourceEdges_ = input.readBool();
    +
    +                  break;
    +                } // case 32
    +              case 40:
    +                {
    +                  outputGroupEdges_ = input.readBool();
    +
    +                  break;
    +                } // case 40
    +              case 48:
    +                {
    +                  analyzeServiceAccountImpersonation_ = input.readBool();
    +
    +                  break;
    +                } // case 48
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -3626,10 +3375,9 @@ public Builder mergeFrom(
            * 
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
    @@ -3649,10 +3397,9 @@ public boolean getExpandGroups() {
            * 
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
    @@ -3675,10 +3422,9 @@ public Builder setExpandGroups(boolean value) {
            * 
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
    @@ -3702,10 +3448,9 @@ public Builder clearExpandGroups() {
            * 
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * @@ -3723,10 +3468,9 @@ public boolean getExpandRoles() { *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * @@ -3747,10 +3491,9 @@ public Builder setExpandRoles(boolean value) { *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * @@ -3770,21 +3513,19 @@ public Builder clearExpandRoles() { * * *
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3806,21 +3547,19 @@ public boolean getExpandResources() {
            *
            *
            * 
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3845,21 +3584,19 @@ public Builder setExpandResources(boolean value) {
            *
            *
            * 
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3885,8 +3622,9 @@ public Builder clearExpandResources() {
            *
            *
            * 
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3901,8 +3639,9 @@ public boolean getOutputResourceEdges() { * * *
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3920,8 +3659,9 @@ public Builder setOutputResourceEdges(boolean value) { * * *
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3940,9 +3680,9 @@ public Builder clearOutputResourceEdges() { * * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3957,9 +3697,9 @@ public boolean getOutputGroupEdges() { * * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3977,9 +3717,9 @@ public Builder setOutputGroupEdges(boolean value) { * * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3998,12 +3738,11 @@ public Builder clearOutputGroupEdges() { * * *
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4042,12 +3781,11 @@ public boolean getAnalyzeServiceAccountImpersonation() {
            *
            *
            * 
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4089,12 +3827,11 @@ public Builder setAnalyzeServiceAccountImpersonation(boolean value) {
            *
            *
            * 
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4165,7 +3902,19 @@ public Options parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Options(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -4265,60 +4014,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private ConditionContext(
    -        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.protobuf.Timestamp.Builder subBuilder = null;
    -                if (timeContextCase_ == 1) {
    -                  subBuilder = ((com.google.protobuf.Timestamp) timeContext_).toBuilder();
    -                }
    -                timeContext_ =
    -                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -                if (subBuilder != null) {
    -                  subBuilder.mergeFrom((com.google.protobuf.Timestamp) timeContext_);
    -                  timeContext_ = subBuilder.buildPartial();
    -                }
    -                timeContextCase_ = 1;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        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_IamPolicyAnalysisQuery_ConditionContext_descriptor;
    @@ -4452,7 +4147,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (timeContextCase_ == 1) {
             output.writeMessage(1, (com.google.protobuf.Timestamp) timeContext_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -4466,7 +4161,7 @@ public int getSerializedSize() {
                 com.google.protobuf.CodedOutputStream.computeMessageSize(
                     1, (com.google.protobuf.Timestamp) timeContext_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -4490,7 +4185,7 @@ public boolean equals(final java.lang.Object obj) {
             case 0:
             default:
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -4509,7 +4204,7 @@ public int hashCode() {
             case 0:
             default:
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -4643,22 +4338,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           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();
    +        if (accessTimeBuilder_ != null) {
    +          accessTimeBuilder_.clear();
    +        }
             timeContextCase_ = 0;
             timeContext_ = null;
             return this;
    @@ -4764,7 +4455,7 @@ public Builder mergeFrom(
                   break;
                 }
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -4779,19 +4470,37 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  input.readMessage(getAccessTimeFieldBuilder().getBuilder(), extensionRegistry);
    +                  timeContextCase_ = 1;
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -5069,7 +4778,19 @@ public ConditionContext parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new ConditionContext(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -5095,8 +4816,8 @@ public com.google.protobuf.Parser getParserForType() {
        *
        *
        * 
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5126,8 +4847,8 @@ public java.lang.String getScope() {
        *
        *
        * 
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5460,7 +5181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (conditionContext_ != null) {
           output.writeMessage(6, getConditionContext());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -5487,7 +5208,7 @@ public int getSerializedSize() {
         if (conditionContext_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConditionContext());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -5524,7 +5245,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasConditionContext()) {
           if (!getConditionContext().equals(other.getConditionContext())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -5557,7 +5278,7 @@ public int hashCode() {
           hash = (37 * hash) + CONDITION_CONTEXT_FIELD_NUMBER;
           hash = (53 * hash) + getConditionContext().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -5686,17 +5407,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -5856,7 +5570,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery other)
           if (other.hasConditionContext()) {
             mergeConditionContext(other.getConditionContext());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -5871,17 +5585,70 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisQuery parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                scope_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(
    +                    getResourceSelectorFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(
    +                    getIdentitySelectorFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getAccessSelectorFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(
    +                    getConditionContextFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -5890,8 +5657,8 @@ public Builder mergeFrom(
          *
          *
          * 
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5920,8 +5687,8 @@ public java.lang.String getScope() {
          *
          *
          * 
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5950,8 +5717,8 @@ public com.google.protobuf.ByteString getScopeBytes() {
          *
          *
          * 
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5979,8 +5746,8 @@ public Builder setScope(java.lang.String value) {
          *
          *
          * 
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -6004,8 +5771,8 @@ public Builder clearScope() {
          *
          *
          * 
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -7103,7 +6870,18 @@ public IamPolicyAnalysisQuery parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new IamPolicyAnalysisQuery(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java
    index 9d5e56d5946d..265ffc013446 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java
    @@ -27,8 +27,8 @@ public interface IamPolicyAnalysisQueryOrBuilder
        *
        *
        * 
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -47,8 +47,8 @@ public interface IamPolicyAnalysisQueryOrBuilder
        *
        *
        * 
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java
    index 49581224e75a..f13b7a205324 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java
    @@ -54,108 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private IamPolicyAnalysisResult(
    -      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();
    -
    -              attachedResourceFullName_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.iam.v1.Binding.Builder subBuilder = null;
    -              if (iamBinding_ != null) {
    -                subBuilder = iamBinding_.toBuilder();
    -              }
    -              iamBinding_ =
    -                  input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamBinding_);
    -                iamBinding_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                accessControlLists_ =
    -                    new java.util.ArrayList<
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              accessControlLists_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.parser(),
    -                      extensionRegistry));
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder subBuilder =
    -                  null;
    -              if (identityList_ != null) {
    -                subBuilder = identityList_.toBuilder();
    -              }
    -              identityList_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(identityList_);
    -                identityList_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 40:
    -            {
    -              fullyExplored_ = input.readBool();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        accessControlLists_ = java.util.Collections.unmodifiableList(accessControlLists_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1.AssetProto
             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    @@ -272,69 +170,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Resource(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                fullResourceName_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null;
    -                if (analysisState_ != null) {
    -                  subBuilder = analysisState_.toBuilder();
    -                }
    -                analysisState_ =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(),
    -                        extensionRegistry);
    -                if (subBuilder != null) {
    -                  subBuilder.mergeFrom(analysisState_);
    -                  analysisState_ = subBuilder.buildPartial();
    -                }
    -
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.cloud.asset.v1.AssetProto
               .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor;
    @@ -469,7 +304,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (analysisState_ != null) {
             output.writeMessage(2, getAnalysisState());
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -484,7 +319,7 @@ public int getSerializedSize() {
           if (analysisState_ != null) {
             size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState());
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -505,7 +340,7 @@ public boolean equals(final java.lang.Object obj) {
           if (hasAnalysisState()) {
             if (!getAnalysisState().equals(other.getAnalysisState())) return false;
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -522,7 +357,7 @@ public int hashCode() {
             hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER;
             hash = (53 * hash) + getAnalysisState().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -654,17 +489,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -772,7 +600,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resou
             if (other.hasAnalysisState()) {
               mergeAnalysisState(other.getAnalysisState());
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -787,18 +615,43 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  fullResourceName_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1133,7 +986,19 @@ public Resource parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Resource(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -1301,76 +1166,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Access(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                oneofAccessCase_ = 1;
    -                oneofAccess_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                oneofAccessCase_ = 2;
    -                oneofAccess_ = s;
    -                break;
    -              }
    -            case 26:
    -              {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null;
    -                if (analysisState_ != null) {
    -                  subBuilder = analysisState_.toBuilder();
    -                }
    -                analysisState_ =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(),
    -                        extensionRegistry);
    -                if (subBuilder != null) {
    -                  subBuilder.mergeFrom(analysisState_);
    -                  analysisState_ = subBuilder.buildPartial();
    -                }
    -
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.cloud.asset.v1.AssetProto
               .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor;
    @@ -1644,7 +1439,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (analysisState_ != null) {
             output.writeMessage(3, getAnalysisState());
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -1662,7 +1457,7 @@ public int getSerializedSize() {
           if (analysisState_ != null) {
             size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnalysisState());
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -1693,7 +1488,7 @@ public boolean equals(final java.lang.Object obj) {
             case 0:
             default:
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -1720,7 +1515,7 @@ public int hashCode() {
             case 0:
             default:
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -1852,17 +1647,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -1990,7 +1778,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acces
                   break;
                 }
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -2005,18 +1793,51 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  oneofAccessCase_ = 1;
    +                  oneofAccess_ = s;
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  oneofAccessCase_ = 2;
    +                  oneofAccess_ = s;
    +                  break;
    +                } // case 18
    +              case 26:
    +                {
    +                  input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                  break;
    +                } // case 26
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -2521,7 +2342,19 @@ public Access parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Access(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -2659,69 +2492,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Identity(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                name_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null;
    -                if (analysisState_ != null) {
    -                  subBuilder = analysisState_.toBuilder();
    -                }
    -                analysisState_ =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(),
    -                        extensionRegistry);
    -                if (subBuilder != null) {
    -                  subBuilder.mergeFrom(analysisState_);
    -                  analysisState_ = subBuilder.buildPartial();
    -                }
    -
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.cloud.asset.v1.AssetProto
               .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor;
    @@ -2874,7 +2644,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (analysisState_ != null) {
             output.writeMessage(2, getAnalysisState());
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -2889,7 +2659,7 @@ public int getSerializedSize() {
           if (analysisState_ != null) {
             size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState());
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -2910,7 +2680,7 @@ public boolean equals(final java.lang.Object obj) {
           if (hasAnalysisState()) {
             if (!getAnalysisState().equals(other.getAnalysisState())) return false;
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -2927,7 +2697,7 @@ public int hashCode() {
             hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER;
             hash = (53 * hash) + getAnalysisState().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -3059,17 +2829,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -3177,7 +2940,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Ident
             if (other.hasAnalysisState()) {
               mergeAnalysisState(other.getAnalysisState());
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -3192,18 +2955,43 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  name_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -3583,7 +3371,19 @@ public Identity parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Identity(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -3696,59 +3496,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Edge(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                sourceNode_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                targetNode_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.cloud.asset.v1.AssetProto
               .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor;
    @@ -3886,7 +3633,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetNode_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -3901,7 +3648,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetNode_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -3919,7 +3666,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (!getSourceNode().equals(other.getSourceNode())) return false;
           if (!getTargetNode().equals(other.getTargetNode())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -3934,7 +3681,7 @@ public int hashCode() {
           hash = (53 * hash) + getSourceNode().hashCode();
           hash = (37 * hash) + TARGET_NODE_FIELD_NUMBER;
           hash = (53 * hash) + getTargetNode().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -4066,17 +3813,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -4175,7 +3915,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge
               targetNode_ = other.targetNode_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -4190,18 +3930,43 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  sourceNode_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  targetNode_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -4460,7 +4225,19 @@ public Edge parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Edge(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -4615,10 +4392,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
          *
          * 
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4631,10 +4406,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4647,10 +4420,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4663,10 +4434,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4680,10 +4449,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4778,113 +4545,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AccessControlList( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - accesses_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>(); - mutable_bitField0_ |= 0x00000002; - } - accesses_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(), - extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - resourceEdges_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>(); - mutable_bitField0_ |= 0x00000004; - } - resourceEdges_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), - extensionRegistry)); - break; - } - case 34: - { - com.google.cloud.asset.v1.ConditionEvaluation.Builder subBuilder = null; - if (conditionEvaluation_ != null) { - subBuilder = conditionEvaluation_.toBuilder(); - } - conditionEvaluation_ = - input.readMessage( - com.google.cloud.asset.v1.ConditionEvaluation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conditionEvaluation_); - conditionEvaluation_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = java.util.Collections.unmodifiableList(resources_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - accesses_ = java.util.Collections.unmodifiableList(accesses_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - resourceEdges_ = java.util.Collections.unmodifiableList(resourceEdges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor; @@ -5071,10 +4731,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5091,10 +4749,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5111,10 +4767,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5130,10 +4784,8 @@ public int getResourceEdgesCount() { * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5149,10 +4801,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5243,7 +4893,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (conditionEvaluation_ != null) { output.writeMessage(4, getConditionEvaluation()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5265,7 +4915,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConditionEvaluation()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5288,7 +4938,7 @@ public boolean equals(final java.lang.Object obj) { if (hasConditionEvaluation()) { if (!getConditionEvaluation().equals(other.getConditionEvaluation())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5315,7 +4965,7 @@ public int hashCode() { hash = (37 * hash) + CONDITION_EVALUATION_FIELD_NUMBER; hash = (53 * hash) + getConditionEvaluation().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -5460,21 +5110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResourcesFieldBuilder(); - getAccessesFieldBuilder(); - getResourceEdgesFieldBuilder(); - } } @java.lang.Override @@ -5482,22 +5121,25 @@ public Builder clear() { super.clear(); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + resources_ = null; resourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (accessesBuilder_ == null) { accesses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + accesses_ = null; accessesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (resourceEdgesBuilder_ == null) { resourceEdges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + resourceEdges_ = null; resourceEdgesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (conditionEvaluationBuilder_ == null) { conditionEvaluation_ = null; } else { @@ -5705,7 +5347,7 @@ public Builder mergeFrom( if (other.hasConditionEvaluation()) { mergeConditionEvaluation(other.getConditionEvaluation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5720,19 +5362,80 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(), + extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(), + extensionRegistry); + if (accessesBuilder_ == null) { + ensureAccessesIsMutable(); + accesses_.add(m); + } else { + accessesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), + extensionRegistry); + if (resourceEdgesBuilder_ == null) { + ensureResourceEdgesIsMutable(); + resourceEdges_.add(m); + } else { + resourceEdgesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + getConditionEvaluationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -6583,10 +6286,8 @@ private void ensureResourceEdgesIsMutable() { * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6607,10 +6308,8 @@ private void ensureResourceEdgesIsMutable() { * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6630,10 +6329,8 @@ public int getResourceEdgesCount() { * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6653,10 +6350,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6683,10 +6378,8 @@ public Builder setResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6711,10 +6404,8 @@ public Builder setResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6741,10 +6432,8 @@ public Builder addResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6771,10 +6460,8 @@ public Builder addResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6798,10 +6485,8 @@ public Builder addResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6826,10 +6511,8 @@ public Builder addResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6854,10 +6537,8 @@ public Builder addAllResourceEdges( * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6880,10 +6561,8 @@ public Builder clearResourceEdges() { * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6906,10 +6585,8 @@ public Builder removeResourceEdges(int index) { * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6926,10 +6603,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6950,10 +6625,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6975,10 +6648,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -6997,10 +6668,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -7019,10 +6688,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourc * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    @@ -7286,7 +6953,19 @@ public AccessControlList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessControlList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -7384,15 +7063,12 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7403,15 +7079,12 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7422,15 +7095,12 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7441,15 +7111,12 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7461,15 +7128,12 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7512,80 +7176,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IdentityList( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - identities_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>(); - mutable_bitField0_ |= 0x00000001; - } - identities_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - groupEdges_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>(); - mutable_bitField0_ |= 0x00000002; - } - groupEdges_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - identities_ = java.util.Collections.unmodifiableList(identities_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - groupEdges_ = java.util.Collections.unmodifiableList(groupEdges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; @@ -7695,15 +7285,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities( * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7718,15 +7305,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities( * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7741,15 +7325,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities( * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7763,15 +7344,12 @@ public int getGroupEdgesCount() { * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7785,15 +7363,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7824,7 +7399,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < groupEdges_.size(); i++) { output.writeMessage(2, groupEdges_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -7839,7 +7414,7 @@ public int getSerializedSize() { for (int i = 0; i < groupEdges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, groupEdges_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -7857,7 +7432,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIdentitiesList().equals(other.getIdentitiesList())) return false; if (!getGroupEdgesList().equals(other.getGroupEdgesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7876,7 +7451,7 @@ public int hashCode() { hash = (37 * hash) + GROUP_EDGES_FIELD_NUMBER; hash = (53 * hash) + getGroupEdgesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -8008,20 +7583,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getIdentitiesFieldBuilder(); - getGroupEdgesFieldBuilder(); - } } @java.lang.Override @@ -8029,16 +7594,18 @@ public Builder clear() { super.clear(); if (identitiesBuilder_ == null) { identities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + identities_ = null; identitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (groupEdgesBuilder_ == null) { groupEdges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + groupEdges_ = null; groupEdgesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -8194,7 +7761,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -8209,19 +7776,59 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), + extensionRegistry); + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(m); + } else { + identitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), + extensionRegistry); + if (groupEdgesBuilder_ == null) { + ensureGroupEdgesIsMutable(); + groupEdges_.add(m); + } else { + groupEdgesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -8689,15 +8296,12 @@ private void ensureGroupEdgesIsMutable() { * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8715,15 +8319,12 @@ private void ensureGroupEdgesIsMutable() { * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8740,15 +8341,12 @@ public int getGroupEdgesCount() { * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8765,15 +8363,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8797,15 +8392,12 @@ public Builder setGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8827,15 +8419,12 @@ public Builder setGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8858,15 +8447,12 @@ public Builder addGroupEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.E * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8890,15 +8476,12 @@ public Builder addGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8919,15 +8502,12 @@ public Builder addGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8949,15 +8529,12 @@ public Builder addGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8979,15 +8556,12 @@ public Builder addAllGroupEdges( * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9007,15 +8581,12 @@ public Builder clearGroupEdges() { * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9035,15 +8606,12 @@ public Builder removeGroupEdges(int index) { * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9057,15 +8625,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEd * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9083,15 +8648,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9110,15 +8672,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9133,15 +8692,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEd * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9157,15 +8713,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEd * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9227,7 +8780,19 @@ public IdentityList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentityList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -9255,9 +8820,7 @@ public com.google.protobuf.Parser getParserForType() { *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; @@ -9282,9 +8845,7 @@ public java.lang.String getAttachedResourceFullName() { *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; @@ -9357,10 +8918,8 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -9376,10 +8935,8 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -9396,10 +8953,8 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -9414,10 +8969,8 @@ public int getAccessControlListsCount() { * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -9433,10 +8986,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAc * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -9455,9 +9006,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAc * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -9472,9 +9022,8 @@ public boolean hasIdentityList() { * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -9491,9 +9040,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentit * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -9510,9 +9058,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentit * * *
    -   * Represents whether all analyses on the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * have successfully finished.
    +   * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +   * finished.
        * 
    * * bool fully_explored = 5; @@ -9553,7 +9100,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fullyExplored_ != false) { output.writeBool(5, fullyExplored_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -9579,7 +9126,7 @@ public int getSerializedSize() { if (fullyExplored_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, fullyExplored_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -9606,7 +9153,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIdentityList().equals(other.getIdentityList())) return false; } if (getFullyExplored() != other.getFullyExplored()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9633,7 +9180,7 @@ public int hashCode() { } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -9763,19 +9310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAccessControlListsFieldBuilder(); - } } @java.lang.Override @@ -9791,10 +9329,11 @@ public Builder clear() { } if (accessControlListsBuilder_ == null) { accessControlLists_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + accessControlLists_ = null; accessControlListsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (identityListBuilder_ == null) { identityList_ = null; } else { @@ -9942,7 +9481,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other if (other.getFullyExplored() != false) { setFullyExplored(other.getFullyExplored()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -9957,18 +9496,70 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attachedResourceFullName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getIamBindingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList + .parser(), + extensionRegistry); + if (accessControlListsBuilder_ == null) { + ensureAccessControlListsIsMutable(); + accessControlLists_.add(m); + } else { + accessControlListsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getIdentityListFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + fullyExplored_ = input.readBool(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -9981,9 +9572,7 @@ public Builder mergeFrom( *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; @@ -10007,9 +9596,7 @@ public java.lang.String getAttachedResourceFullName() { *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; @@ -10033,9 +9620,7 @@ public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; @@ -10058,9 +9643,7 @@ public Builder setAttachedResourceFullName(java.lang.String value) { *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; @@ -10079,9 +9662,7 @@ public Builder clearAttachedResourceFullName() { *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; @@ -10302,10 +9883,8 @@ private void ensureAccessControlListsIsMutable() { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10324,10 +9903,8 @@ private void ensureAccessControlListsIsMutable() { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10345,10 +9922,8 @@ public int getAccessControlListsCount() { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10367,10 +9942,8 @@ public int getAccessControlListsCount() { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10395,10 +9968,8 @@ public Builder setAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10422,10 +9993,8 @@ public Builder setAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10450,10 +10019,8 @@ public Builder addAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10478,10 +10045,8 @@ public Builder addAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10504,10 +10069,8 @@ public Builder addAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10531,10 +10094,8 @@ public Builder addAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10558,10 +10119,8 @@ public Builder addAllAccessControlLists( * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10582,10 +10141,8 @@ public Builder clearAccessControlLists() { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10606,10 +10163,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10624,10 +10179,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10646,10 +10199,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10669,10 +10220,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10690,10 +10239,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10712,10 +10259,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * * @@ -10758,9 +10303,8 @@ public Builder removeAccessControlLists(int index) { * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10774,9 +10318,8 @@ public boolean hasIdentityList() { * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10796,9 +10339,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentit * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10821,9 +10363,8 @@ public Builder setIdentityList( * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10843,9 +10384,8 @@ public Builder setIdentityList( * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10873,9 +10413,8 @@ public Builder mergeIdentityList( * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10895,9 +10434,8 @@ public Builder clearIdentityList() { * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10912,9 +10450,8 @@ public Builder clearIdentityList() { * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10933,9 +10470,8 @@ public Builder clearIdentityList() { * * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10962,9 +10498,8 @@ public Builder clearIdentityList() { * * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; @@ -10979,9 +10514,8 @@ public boolean getFullyExplored() { * * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; @@ -10999,9 +10533,8 @@ public Builder setFullyExplored(boolean value) { * * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; @@ -11047,7 +10580,18 @@ public IamPolicyAnalysisResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java index 30601f1bfe1c..4b95e3bb15be 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java @@ -29,9 +29,7 @@ public interface IamPolicyAnalysisResultOrBuilder *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; @@ -45,9 +43,7 @@ public interface IamPolicyAnalysisResultOrBuilder *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; @@ -95,10 +91,8 @@ public interface IamPolicyAnalysisResultOrBuilder * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -111,10 +105,8 @@ public interface IamPolicyAnalysisResultOrBuilder * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -127,10 +119,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -142,10 +132,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -159,10 +147,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * * @@ -176,9 +162,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -190,9 +175,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -204,9 +188,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -218,9 +201,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessCon * * *
    -   * Represents whether all analyses on the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * have successfully finished.
    +   * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +   * finished.
        * 
    * * bool fully_explored = 5; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java index d76ed9749994..0047a4a4a95a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IamPolicyAnalysisState( - 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 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - cause_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor; @@ -236,7 +183,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cause_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -251,7 +198,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cause_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -269,7 +216,7 @@ public boolean equals(final java.lang.Object obj) { if (code_ != other.code_) return false; if (!getCause().equals(other.getCause())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,7 +231,7 @@ public int hashCode() { hash = (53 * hash) + code_; hash = (37 * hash) + CAUSE_FIELD_NUMBER; hash = (53 * hash) + getCause().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -414,17 +361,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -520,7 +460,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisState other) cause_ = other.cause_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -535,17 +475,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisState parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + cause_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.IamPolicyAnalysisState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -802,7 +768,18 @@ public IamPolicyAnalysisState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisState(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java index 00683a862262..0a6a0e044229 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java @@ -56,118 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IamPolicySearchResult( - 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(); - - resource_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder subBuilder = null; - if (explanation_ != null) { - subBuilder = explanation_.toBuilder(); - } - explanation_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(explanation_); - explanation_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - organization_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = folders_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; @@ -327,66 +215,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Explanation( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - matchedPermissions_ = - com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - matchedPermissions__ = - input.readMessage( - MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - matchedPermissions_ - .getMutableMap() - .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; @@ -503,60 +331,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Permissions( - 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)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; @@ -651,7 +425,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -668,7 +442,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPermissionsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -686,7 +460,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) obj; if (!getPermissionsList().equals(other.getPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -701,7 +475,7 @@ public int hashCode() { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -843,17 +617,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -964,7 +731,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -979,20 +746,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1202,7 +987,19 @@ public Permissions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Permissions(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1401,7 +1198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetMatchedPermissions(), MatchedPermissionsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1425,7 +1222,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1443,7 +1240,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1458,7 +1255,7 @@ public int hashCode() { hash = (37 * hash) + MATCHED_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetMatchedPermissions().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1610,17 +1407,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1712,7 +1502,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult.Explana == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()) return this; internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1727,19 +1517,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + matchedPermissions__ = + input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMatchedPermissions() + .getMutableMap() + .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2029,7 +1845,19 @@ public Explanation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Explanation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2539,7 +2367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2574,7 +2402,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2603,7 +2431,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExplanation()) { if (!getExplanation().equals(other.getExplanation())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2634,7 +2462,7 @@ public int hashCode() { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2763,17 +2591,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2930,7 +2751,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult other) if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2945,17 +2766,74 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getExplanationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 50 + case 58: + { + organization_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.IamPolicySearchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4224,7 +4102,18 @@ public IamPolicySearchResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicySearchResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java index 26658678dccc..d9d96abeca3f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java @@ -56,113 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListAssetsRequest( - 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(); - - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 40: - { - pageSize_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.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_ListAssetsRequest_descriptor; @@ -184,11 +77,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * * @@ -213,11 +106,11 @@ public java.lang.String getParent() { * * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * * @@ -673,7 +566,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -714,7 +607,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -740,7 +633,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -771,7 +664,7 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -900,17 +793,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListAssetsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1067,7 +953,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsRequest other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1082,17 +968,75 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 40: + { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1103,11 +1047,11 @@ public Builder mergeFrom( * * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * * @@ -1131,11 +1075,11 @@ public java.lang.String getParent() { * * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * * @@ -1159,11 +1103,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * * @@ -1186,11 +1130,11 @@ public Builder setParent(java.lang.String value) { * * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * * @@ -1209,11 +1153,11 @@ public Builder clearParent() { * * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * * @@ -2327,7 +2271,18 @@ public ListAssetsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java index d54ad45a57c0..da5c520ef91a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java @@ -27,11 +27,11 @@ public interface ListAssetsRequestOrBuilder * * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * * @@ -45,11 +45,11 @@ public interface ListAssetsRequestOrBuilder * * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java index 9836d48991f5..77f756613c68 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java @@ -53,81 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListAssetsResponse( - 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: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - 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_ListAssetsResponse_descriptor; @@ -334,7 +259,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -352,7 +277,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -374,7 +299,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAssetsList().equals(other.getAssetsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,7 +320,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -524,19 +449,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListAssetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } @java.lang.Override @@ -550,10 +466,11 @@ public Builder clear() { } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -682,7 +599,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsResponse other) { nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -697,17 +614,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.Asset m = + input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1386,7 +1341,18 @@ public ListAssetsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java index 737d7605fd5e..2998c69f5249 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFeedsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_ListFeedsRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.ListFeedsRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListFeedsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsRequest other) { parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,17 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListFeedsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListFeedsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -630,7 +597,18 @@ public ListFeedsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java index b0b58308cddc..a8c959028792 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java @@ -44,59 +44,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFeedsResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - feeds_.add( - input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = java.util.Collections.unmodifiableList(feeds_); - } - 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_ListFeedsResponse_descriptor; @@ -197,7 +144,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -209,7 +156,7 @@ public int getSerializedSize() { for (int i = 0; i < feeds_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -226,7 +173,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.ListFeedsResponse) obj; if (!getFeedsList().equals(other.getFeedsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,7 +188,7 @@ public int hashCode() { hash = (37 * hash) + FEEDS_FIELD_NUMBER; hash = (53 * hash) + getFeedsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -362,19 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListFeedsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFeedsFieldBuilder(); - } } @java.lang.Override @@ -382,10 +320,11 @@ public Builder clear() { super.clear(); if (feedsBuilder_ == null) { feeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + feeds_ = null; feedsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -499,7 +438,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -514,17 +453,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListFeedsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.Feed m = + input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(m); + } else { + feedsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListFeedsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -907,7 +872,18 @@ public ListFeedsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java index 2a293c9cdb1f..1ec30359d567 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListSavedQueriesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_ListSavedQueriesRequest_descriptor; @@ -140,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * @@ -167,8 +102,8 @@ public java.lang.String getParent() { * * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * @@ -256,9 +191,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * Optional. The maximum number of saved queries to return per page. The
    -   * service may return fewer than this value. If unspecified, at most 50 will
    -   * be returned.
    +   * Optional. The maximum number of saved queries to return per page. The service may
    +   * return fewer than this value. If unspecified, at most 50 will be returned.
        *  The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * @@ -352,7 +286,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -373,7 +307,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -393,7 +327,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -412,7 +346,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -541,17 +475,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListSavedQueriesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -661,7 +588,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesRequest other pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -676,18 +603,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListSavedQueriesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.ListSavedQueriesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -696,8 +660,8 @@ public Builder mergeFrom( * * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * @@ -722,8 +686,8 @@ public java.lang.String getParent() { * * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * @@ -748,8 +712,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * @@ -773,8 +737,8 @@ public Builder setParent(java.lang.String value) { * * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * @@ -794,8 +758,8 @@ public Builder clearParent() { * * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * @@ -953,9 +917,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * @@ -971,9 +934,8 @@ public int getPageSize() { * * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * @@ -992,9 +954,8 @@ public Builder setPageSize(int value) { * * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * @@ -1162,7 +1123,18 @@ public ListSavedQueriesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSavedQueriesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java index 39f29e97937f..ab160dfeaf21 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListSavedQueriesRequestOrBuilder * * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * @@ -43,8 +43,8 @@ public interface ListSavedQueriesRequestOrBuilder * * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * @@ -95,9 +95,8 @@ public interface ListSavedQueriesRequestOrBuilder * * *
    -   * Optional. The maximum number of saved queries to return per page. The
    -   * service may return fewer than this value. If unspecified, at most 50 will
    -   * be returned.
    +   * Optional. The maximum number of saved queries to return per page. The service may
    +   * return fewer than this value. If unspecified, at most 50 will be returned.
        *  The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java index cb51c0b8080a..a91cad7d27ef 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListSavedQueriesResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - savedQueries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - savedQueries_.add( - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); - } - 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_ListSavedQueriesResponse_descriptor; @@ -269,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -284,7 +223,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -302,7 +241,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSavedQueriesList().equals(other.getSavedQueriesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,7 +258,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -448,19 +387,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.ListSavedQueriesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSavedQueriesFieldBuilder(); - } } @java.lang.Override @@ -468,10 +398,11 @@ public Builder clear() { super.clear(); if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + savedQueries_ = null; savedQueriesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -593,7 +524,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse othe nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -608,18 +539,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListSavedQueriesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.SavedQuery m = + input.readMessage( + com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry); + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(m); + } else { + savedQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.ListSavedQueriesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1118,7 +1081,18 @@ public ListSavedQueriesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSavedQueriesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java index 4fe6f64f8ed6..d82321b9d802 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java @@ -52,82 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private MoveAnalysis( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.MoveAnalysisResult.Builder subBuilder = null; - if (resultCase_ == 2) { - subBuilder = ((com.google.cloud.asset.v1.MoveAnalysisResult) result_).toBuilder(); - } - result_ = - input.readMessage( - com.google.cloud.asset.v1.MoveAnalysisResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 2; - break; - } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (resultCase_ == 3) { - subBuilder = ((com.google.rpc.Status) result_).toBuilder(); - } - result_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.rpc.Status) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 3; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_MoveAnalysis_descriptor; @@ -366,7 +290,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 3) { output.writeMessage(3, (com.google.rpc.Status) result_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -388,7 +312,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.rpc.Status) result_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -415,7 +339,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,7 +364,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -569,17 +493,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.MoveAnalysis.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -587,6 +504,12 @@ public Builder clear() { super.clear(); displayName_ = ""; + if (analysisBuilder_ != null) { + analysisBuilder_.clear(); + } + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; @@ -701,7 +624,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysis other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -716,17 +639,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveAnalysis parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getAnalysisFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveAnalysis) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1298,7 +1253,18 @@ public MoveAnalysis parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveAnalysis(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java index 06690b41e0bf..953394bbbbcb 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java @@ -53,74 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private MoveAnalysisResult( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blockers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blockers_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - warnings_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - blockers_ = java.util.Collections.unmodifiableList(blockers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = java.util.Collections.unmodifiableList(warnings_); - } - 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_MoveAnalysisResult_descriptor; @@ -309,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < warnings_.size(); i++) { output.writeMessage(2, warnings_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -324,7 +256,7 @@ public int getSerializedSize() { for (int i = 0; i < warnings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, warnings_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -342,7 +274,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBlockersList().equals(other.getBlockersList())) return false; if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,7 +293,7 @@ public int hashCode() { hash = (37 * hash) + WARNINGS_FIELD_NUMBER; hash = (53 * hash) + getWarningsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -490,20 +422,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlockersFieldBuilder(); - getWarningsFieldBuilder(); - } } @java.lang.Override @@ -511,16 +433,18 @@ public Builder clear() { super.clear(); if (blockersBuilder_ == null) { blockers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + blockers_ = null; blockersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (warningsBuilder_ == null) { warnings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + warnings_ = null; warningsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -670,7 +594,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysisResult other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -685,17 +609,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveAnalysisResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry); + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(m); + } else { + blockersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveAnalysisResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1483,7 +1447,18 @@ public MoveAnalysisResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveAnalysisResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java index 5a2303a10bdf..f292982aeab1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private MoveImpact( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - detail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_MoveImpact_descriptor; @@ -179,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detail_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -191,7 +145,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detail_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -207,7 +161,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.asset.v1.MoveImpact other = (com.google.cloud.asset.v1.MoveImpact) obj; if (!getDetail().equals(other.getDetail())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,7 +174,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DETAIL_FIELD_NUMBER; hash = (53 * hash) + getDetail().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -348,17 +302,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.MoveImpact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -446,7 +393,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveImpact other) { detail_ = other.detail_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -461,17 +408,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveImpact parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveImpact) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -613,7 +580,18 @@ public MoveImpact parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveImpact(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java index 6e02e0f21a00..e637ada7cb96 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java @@ -50,78 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OutputConfig( - 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.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.asset.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.asset.v1.BigQueryDestination.Builder subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.asset.v1.BigQueryDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.BigQueryDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.BigQueryDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_OutputConfig_descriptor; @@ -309,7 +237,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationCase_ == 2) { output.writeMessage(2, (com.google.cloud.asset.v1.BigQueryDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -328,7 +256,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.asset.v1.BigQueryDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -354,7 +282,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,7 +305,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -506,22 +434,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.OutputConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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(); + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; @@ -631,7 +558,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.OutputConfig other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -646,17 +573,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.OutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1136,7 +1090,18 @@ public OutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java index 7922ccf43f4d..6f8249d647c8 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java @@ -50,61 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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; @@ -232,7 +177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -246,7 +191,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -269,7 +214,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,7 +233,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -417,22 +362,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.OutputResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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(); + if (gcsResultBuilder_ != null) { + gcsResultBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; @@ -530,7 +471,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.OutputResult other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -545,17 +486,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGcsResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.OutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -814,7 +775,18 @@ public OutputResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java index 29caf7155018..4a844504ecce 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PartitionSpec( - 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 8: - { - int rawValue = input.readEnum(); - - partitionKey_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_PartitionSpec_descriptor; @@ -345,7 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, partitionKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -359,7 +313,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -375,7 +329,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.asset.v1.PartitionSpec other = (com.google.cloud.asset.v1.PartitionSpec) obj; if (partitionKey_ != other.partitionKey_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,7 +342,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; hash = (53 * hash) + partitionKey_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -517,17 +471,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.PartitionSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -615,7 +562,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.PartitionSpec other) { if (other.partitionKey_ != 0) { setPartitionKeyValue(other.getPartitionKeyValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -630,17 +577,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.PartitionSpec parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + partitionKey_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.PartitionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -769,7 +736,18 @@ public PartitionSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionSpec(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java index c0989ae4e932..97aa01169529 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PubsubDestination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_PubsubDestination_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.PubsubDestination) obj; if (!getTopic().equals(other.getTopic())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.PubsubDestination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -451,7 +398,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.PubsubDestination other) { topic_ = other.topic_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -466,17 +413,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.PubsubDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.PubsubDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -623,7 +590,18 @@ public PubsubDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubDestination(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java index 2599ed2694b0..f42d76968f9f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java @@ -50,64 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryAssetsOutputConfig( - 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.QueryAssetsOutputConfig.BigQueryDestination.Builder - subBuilder = null; - if (bigqueryDestination_ != null) { - subBuilder = bigqueryDestination_.toBuilder(); - } - bigqueryDestination_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigqueryDestination_); - bigqueryDestination_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_QueryAssetsOutputConfig_descriptor; @@ -132,8 +74,8 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -145,8 +87,8 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -159,9 +101,8 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -173,9 +114,8 @@ public interface BigQueryDestinationOrBuilder * * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -194,8 +134,9 @@ public interface BigQueryDestinationOrBuilder * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -213,8 +154,9 @@ public interface BigQueryDestinationOrBuilder * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -259,66 +201,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BigQueryDestination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - table_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - writeDisposition_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_QueryAssetsOutputConfig_BigQueryDestination_descriptor; @@ -340,8 +222,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -364,8 +246,8 @@ public java.lang.String getDataset() { * * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -391,9 +273,8 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -416,9 +297,8 @@ public java.lang.String getTable() { * * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -450,8 +330,9 @@ public com.google.protobuf.ByteString getTableBytes() { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -480,8 +361,9 @@ public java.lang.String getWriteDisposition() { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -524,7 +406,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, writeDisposition_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -542,7 +424,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, writeDisposition_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -561,7 +443,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDataset().equals(other.getDataset())) return false; if (!getTable().equals(other.getTable())) return false; if (!getWriteDisposition().equals(other.getWriteDisposition())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -578,7 +460,7 @@ public int hashCode() { hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER; hash = (53 * hash) + getWriteDisposition().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -713,17 +595,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -836,7 +711,7 @@ public Builder mergeFrom( writeDisposition_ = other.writeDisposition_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -851,19 +726,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + writeDisposition_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -872,8 +777,8 @@ public Builder mergeFrom( * * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -895,8 +800,8 @@ public java.lang.String getDataset() { * * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -918,8 +823,8 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -940,8 +845,8 @@ public Builder setDataset(java.lang.String value) { * * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -958,8 +863,8 @@ public Builder clearDataset() { * * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -983,9 +888,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1007,9 +911,8 @@ public java.lang.String getTable() { * * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1031,9 +934,8 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,9 +956,8 @@ public Builder setTable(java.lang.String value) { * * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1073,9 +974,8 @@ public Builder clearTable() { * * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1105,8 +1005,9 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -1134,8 +1035,9 @@ public java.lang.String getWriteDisposition() { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -1163,8 +1065,9 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -1191,8 +1094,9 @@ public Builder setWriteDisposition(java.lang.String value) { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -1215,8 +1119,9 @@ public Builder clearWriteDisposition() { * overwrites the entire table or all the partitions data. * * WRITE_APPEND: If the table or partition already exists, BigQuery * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. + * * WRITE_EMPTY: If the table already exists and contains data, a + * 'duplicate' error is returned in the job result. + * The default value is WRITE_EMPTY. *
    * * string write_disposition = 3; @@ -1271,7 +1176,19 @@ public BigQueryDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1365,7 +1282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bigqueryDestination_ != null) { output.writeMessage(1, getBigqueryDestination()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1377,7 +1294,7 @@ public int getSerializedSize() { if (bigqueryDestination_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1397,7 +1314,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBigqueryDestination()) { if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1412,7 +1329,7 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getBigqueryDestination().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1541,17 +1458,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1648,7 +1558,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsOutputConfig other if (other.hasBigqueryDestination()) { mergeBigqueryDestination(other.getBigqueryDestination()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1663,18 +1573,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1924,7 +1854,18 @@ public QueryAssetsOutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAssetsOutputConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java index 51b47b0145f8..601e85137530 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java @@ -53,140 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 2; - query_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 3; - query_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.asset.v1.TimeWindow.Builder subBuilder = null; - if (timeCase_ == 7) { - subBuilder = ((com.google.cloud.asset.v1.TimeWindow) time_).toBuilder(); - } - time_ = - input.readMessage( - com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.TimeWindow) time_); - time_ = subBuilder.buildPartial(); - } - timeCase_ = 7; - break; - } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timeCase_ == 8) { - subBuilder = ((com.google.protobuf.Timestamp) time_).toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) time_); - time_ = subBuilder.buildPartial(); - } - timeCase_ = 8; - break; - } - case 74: - { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_QueryAssetsRequest_descriptor; @@ -435,8 +301,8 @@ public com.google.protobuf.ByteString getStatementBytes() { * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -450,8 +316,8 @@ public boolean hasJobReference() { * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -478,8 +344,8 @@ public java.lang.String getJobReference() { * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -509,8 +375,8 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { * * *
    -   * Optional. The maximum number of rows to return in the results. Responses
    -   * are limited to 10 MB and 1000 rows.
    +   * Optional. The maximum number of rows to return in the results. Responses are limited
    +   * to 10 MB and 1000 rows.
        * By default, the maximum row count is 1000. When the byte or row count limit
        * is reached, the rest of the query results will be paginated.
        * The field will be ignored when [output_config] is specified.
    @@ -582,11 +448,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -607,11 +472,10 @@ public boolean hasTimeout() {
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -632,11 +496,10 @@ public com.google.protobuf.Duration getTimeout() {
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -657,9 +520,9 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
        *
        *
        * 
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -676,9 +539,9 @@ public boolean hasReadTimeWindow() { * * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -698,9 +561,9 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { * * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -720,8 +583,7 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -737,8 +599,7 @@ public boolean hasReadTime() { * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -757,8 +618,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -885,7 +745,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(9, getOutputConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -925,7 +785,7 @@ public int getSerializedSize() { if (outputConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getOutputConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -974,7 +834,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1023,7 +883,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1152,17 +1012,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.QueryAssetsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1180,6 +1033,12 @@ public Builder clear() { timeout_ = null; timeoutBuilder_ = null; } + if (readTimeWindowBuilder_ != null) { + readTimeWindowBuilder_.clear(); + } + if (readTimeBuilder_ != null) { + readTimeBuilder_.clear(); + } if (outputConfigBuilder_ == null) { outputConfig_ = null; } else { @@ -1354,7 +1213,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsRequest other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1369,17 +1228,87 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 2; + query_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 3; + query_ = s; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getReadTimeWindowFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.QueryAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1691,8 +1620,8 @@ public Builder setStatementBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1707,8 +1636,8 @@ public boolean hasJobReference() { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1736,8 +1665,8 @@ public java.lang.String getJobReference() { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1765,8 +1694,8 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1787,8 +1716,8 @@ public Builder setJobReference(java.lang.String value) { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1807,8 +1736,8 @@ public Builder clearJobReference() { * * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1832,8 +1761,8 @@ public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
    @@ -1851,8 +1780,8 @@ public int getPageSize() {
          *
          *
          * 
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
    @@ -1873,8 +1802,8 @@ public Builder setPageSize(int value) {
          *
          *
          * 
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
    @@ -2012,11 +1941,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2036,11 +1964,10 @@ public boolean hasTimeout() {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2064,11 +1991,10 @@ public com.google.protobuf.Duration getTimeout() {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2096,11 +2022,10 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2125,11 +2050,10 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2159,11 +2083,10 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2189,11 +2112,10 @@ public Builder clearTimeout() {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2213,11 +2135,10 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2239,11 +2160,10 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
          *
          *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2280,9 +2200,9 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
          *
          *
          * 
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2299,9 +2219,9 @@ public boolean hasReadTimeWindow() { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2328,9 +2248,9 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2354,9 +2274,9 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2377,9 +2297,9 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder bu * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2412,9 +2332,9 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2441,9 +2361,9 @@ public Builder clearReadTimeWindow() { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2457,9 +2377,9 @@ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2481,9 +2401,9 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( * * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * * @@ -2522,8 +2442,7 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2539,8 +2458,7 @@ public boolean hasReadTime() { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2566,8 +2484,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2590,8 +2507,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2611,8 +2527,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2643,8 +2558,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2670,8 +2584,7 @@ public Builder clearReadTime() { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2684,8 +2597,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2706,8 +2618,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3026,7 +2937,18 @@ public QueryAssetsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAssetsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java index 492eae53ad0e..65d9cf5b9b2d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java @@ -104,8 +104,8 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -117,8 +117,8 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -130,8 +130,8 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -144,8 +144,8 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. The maximum number of rows to return in the results. Responses
    -   * are limited to 10 MB and 1000 rows.
    +   * Optional. The maximum number of rows to return in the results. Responses are limited
    +   * to 10 MB and 1000 rows.
        * By default, the maximum row count is 1000. When the byte or row count limit
        * is reached, the rest of the query results will be paginated.
        * The field will be ignored when [output_config] is specified.
    @@ -188,11 +188,10 @@ public interface QueryAssetsRequestOrBuilder
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -210,11 +209,10 @@ public interface QueryAssetsRequestOrBuilder
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -232,11 +230,10 @@ public interface QueryAssetsRequestOrBuilder
        *
        *
        * 
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -253,9 +250,9 @@ public interface QueryAssetsRequestOrBuilder
        *
        *
        * 
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -269,9 +266,9 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -285,9 +282,9 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * * @@ -300,8 +297,7 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -314,8 +310,7 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -328,8 +323,7 @@ public interface QueryAssetsRequestOrBuilder * * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java index 8fdcc9f9e765..1bd4becddb9c 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java @@ -52,105 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryAssetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobReference_ = s; - break; - } - case 16: - { - done_ = input.readBool(); - break; - } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (responseCase_ == 3) { - subBuilder = ((com.google.rpc.Status) response_).toBuilder(); - } - response_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.rpc.Status) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 3; - break; - } - case 34: - { - com.google.cloud.asset.v1.QueryResult.Builder subBuilder = null; - if (responseCase_ == 4) { - subBuilder = ((com.google.cloud.asset.v1.QueryResult) response_).toBuilder(); - } - response_ = - input.readMessage( - com.google.cloud.asset.v1.QueryResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.QueryResult) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 4; - break; - } - case 42: - { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder subBuilder = null; - if (responseCase_ == 5) { - subBuilder = - ((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_).toBuilder(); - } - response_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 5; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_QueryAssetsResponse_descriptor; @@ -472,7 +373,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseCase_ == 5) { output.writeMessage(5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -502,7 +403,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -534,7 +435,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -565,7 +466,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -694,17 +595,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.QueryAssetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -714,6 +608,15 @@ public Builder clear() { done_ = false; + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + if (queryResultBuilder_ != null) { + queryResultBuilder_.clear(); + } + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.clear(); + } responseCase_ = 0; response_ = null; return this; @@ -844,7 +747,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsResponse other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -859,17 +762,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + jobReference_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + done_ = input.readBool(); + + break; + } // case 16 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.QueryAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1719,7 +1666,18 @@ public QueryAssetsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAssetsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java index c8e98ebadfbd..257ca57f419e 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java @@ -56,86 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryResult( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rows_.add(input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.cloud.asset.v1.TableSchema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = - input.readMessage( - com.google.cloud.asset.v1.TableSchema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: - { - totalRows_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - 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_QueryResult_descriptor; @@ -358,7 +278,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalRows_ != 0L) { output.writeInt64(4, totalRows_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -379,7 +299,7 @@ public int getSerializedSize() { if (totalRows_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalRows_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -401,7 +321,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (getTotalRows() != other.getTotalRows()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -424,7 +344,7 @@ public int hashCode() { hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_ROWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalRows()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -555,19 +475,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.QueryResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRowsFieldBuilder(); - } } @java.lang.Override @@ -575,10 +486,11 @@ public Builder clear() { super.clear(); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + rows_ = null; rowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (schemaBuilder_ == null) { schema_ = null; } else { @@ -719,7 +631,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryResult other) { if (other.getTotalRows() != 0L) { setTotalRows(other.getTotalRows()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -734,17 +646,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + totalRows_ = input.readInt64(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.QueryResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1467,7 +1423,18 @@ public QueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java index 845b44c83ba4..309b2dd704fe 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java @@ -62,80 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RelatedAsset( - 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(); - - asset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ancestors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ancestors_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - relationshipType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ancestors_ = ancestors_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor; @@ -417,7 +343,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relationshipType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, relationshipType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -443,7 +369,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relationshipType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, relationshipType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -462,7 +388,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAssetType().equals(other.getAssetType())) return false; if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getRelationshipType().equals(other.getRelationshipType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,7 +409,7 @@ public int hashCode() { } hash = (37 * hash) + RELATIONSHIP_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRelationshipType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -619,17 +545,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.RelatedAsset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -750,7 +669,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedAsset other) { relationshipType_ = other.relationshipType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -765,17 +684,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedAsset parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + asset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAncestorsIsMutable(); + ancestors_.add(s); + break; + } // case 26 + case 34: + { + relationshipType_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedAsset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1375,7 +1333,18 @@ public RelatedAsset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAsset(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java index ed2646fbd2e8..0650cd7d16ce 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java @@ -56,76 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RelatedAssets( - 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: - { - com.google.cloud.asset.v1.RelationshipAttributes.Builder subBuilder = null; - if (relationshipAttributes_ != null) { - subBuilder = relationshipAttributes_.toBuilder(); - } - relationshipAttributes_ = - input.readMessage( - com.google.cloud.asset.v1.RelationshipAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(relationshipAttributes_); - relationshipAttributes_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage( - com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor; @@ -279,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assets_.size(); i++) { output.writeMessage(2, assets_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +225,7 @@ public int getSerializedSize() { for (int i = 0; i < assets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -315,7 +245,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false; } if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,7 +264,7 @@ public int hashCode() { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -466,19 +396,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.RelatedAssets.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } @java.lang.Override @@ -492,10 +413,11 @@ public Builder clear() { } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -617,7 +539,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedAssets other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -632,17 +554,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedAssets parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getRelationshipAttributesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.RelatedAsset m = + input.readMessage( + com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedAssets) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1218,7 +1174,18 @@ public RelatedAssets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAssets(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java index cbd0b21576ba..80d9fd5e6e8d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RelatedResource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; @@ -241,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fullResourceName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +203,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullResourceName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -274,7 +221,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAssetType().equals(other.getAssetType())) return false; if (!getFullResourceName().equals(other.getFullResourceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,7 +236,7 @@ public int hashCode() { hash = (53 * hash) + getAssetType().hashCode(); hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -418,17 +365,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.RelatedResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -524,7 +464,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedResource other) { fullResourceName_ = other.fullResourceName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -539,17 +479,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -802,7 +768,18 @@ public RelatedResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedResource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java index 350d3a2e0fbd..a6c6df76791a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java @@ -52,61 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RelatedResources( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - relatedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - relatedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.RelatedResource.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - relatedResources_ = java.util.Collections.unmodifiableList(relatedResources_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; @@ -209,7 +154,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relatedResources_.size(); i++) { output.writeMessage(1, relatedResources_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +166,7 @@ public int getSerializedSize() { for (int i = 0; i < relatedResources_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, relatedResources_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -238,7 +183,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.asset.v1.RelatedResources) obj; if (!getRelatedResourcesList().equals(other.getRelatedResourcesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,7 +198,7 @@ public int hashCode() { hash = (37 * hash) + RELATED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRelatedResourcesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -382,19 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.RelatedResources.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRelatedResourcesFieldBuilder(); - } } @java.lang.Override @@ -402,10 +338,11 @@ public Builder clear() { super.clear(); if (relatedResourcesBuilder_ == null) { relatedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + relatedResources_ = null; relatedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -519,7 +456,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedResources other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -534,17 +471,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedResources parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.RelatedResource m = + input.readMessage( + com.google.cloud.asset.v1.RelatedResource.parser(), extensionRegistry); + if (relatedResourcesBuilder_ == null) { + ensureRelatedResourcesIsMutable(); + relatedResources_.add(m); + } else { + relatedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -937,7 +901,18 @@ public RelatedResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedResources(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java index cb95c5f3a9c0..7076d6b7c4d1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java @@ -60,73 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RelationshipAttributes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - sourceResourceType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - targetResourceType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - action_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor; @@ -366,7 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -387,7 +320,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -407,7 +340,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceResourceType().equals(other.getSourceResourceType())) return false; if (!getTargetResourceType().equals(other.getTargetResourceType())) return false; if (!getAction().equals(other.getAction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -426,7 +359,7 @@ public int hashCode() { hash = (53 * hash) + getTargetResourceType().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -559,17 +492,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.RelationshipAttributes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -680,7 +606,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelationshipAttributes other) action_ = other.action_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -695,17 +621,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelationshipAttributes parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceResourceType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + targetResourceType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + action_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelationshipAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1170,7 +1134,18 @@ public RelationshipAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RelationshipAttributes(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java index 792696ab6fa7..e4672184dba9 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java @@ -57,101 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Resource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryDocumentUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_Resource_descriptor; @@ -585,7 +490,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, location_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -615,7 +520,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -640,7 +545,7 @@ public boolean equals(final java.lang.Object obj) { if (!getData().equals(other.getData())) return false; } if (!getLocation().equals(other.getLocation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -667,7 +572,7 @@ public int hashCode() { } hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -795,17 +700,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.Resource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -942,7 +840,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Resource other) { location_ = other.location_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -957,17 +855,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 66: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1925,7 +1879,18 @@ public Resource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java index afce56305eaf..bde1f7c0d26f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java @@ -23,7 +23,7 @@ * *
      * A result of Resource Search, containing information of a cloud resource.
    - * Next ID: 29
    + * Next ID: 31
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} @@ -49,6 +49,7 @@ private ResourceSearchResult() { location_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; kmsKey_ = ""; + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; state_ = ""; parentFullResourceName_ = ""; versionedResources_ = java.util.Collections.emptyList(); @@ -70,295 +71,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResourceSearchResult( - 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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networkTags_.add(s); - break; - } - case 74: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (additionalAttributes_ != null) { - subBuilder = additionalAttributes_.toBuilder(); - } - additionalAttributes_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(additionalAttributes_); - additionalAttributes_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - state_ = s; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - versionedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - versionedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry)); - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add(s); - break; - } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - - organization_ = s; - break; - } - case 154: - { - java.lang.String s = input.readStringRequireUtf8(); - - parentFullResourceName_ = s; - break; - } - case 162: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - attachedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - attachedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.AttachedResource.parser(), extensionRegistry)); - break; - } - case 170: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - relationships_ = - com.google.protobuf.MapField.newMapField( - RelationshipsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1.RelatedResources> - relationships__ = - input.readMessage( - RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - relationships_ - .getMutableMap() - .put(relationships__.getKey(), relationships__.getValue()); - break; - } - case 186: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - tagKeys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000040; - } - tagKeys_.add(s); - break; - } - case 202: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - tagValues_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000080; - } - tagValues_.add(s); - break; - } - case 210: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - tagValueIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - tagValueIds_.add(s); - break; - } - case 826: - { - java.lang.String s = input.readStringRequireUtf8(); - - parentAssetType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = networkTags_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = folders_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - attachedResources_ = java.util.Collections.unmodifiableList(attachedResources_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - tagKeys_ = tagKeys_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - tagValues_ = tagValues_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - tagValueIds_ = tagValueIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.asset.v1.AssetProto .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; @@ -399,8 +111,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; @@ -429,8 +141,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; @@ -458,7 +170,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; @@ -483,7 +195,7 @@ public java.lang.String getAssetType() { *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; @@ -513,9 +225,9 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -542,9 +254,9 @@ public java.lang.String getProject() { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -574,9 +286,9 @@ public com.google.protobuf.ByteString getProjectBytes() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -594,9 +306,9 @@ public com.google.protobuf.ProtocolStringList getFoldersList() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -614,9 +326,9 @@ public int getFoldersCount() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -635,9 +347,9 @@ public java.lang.String getFolders(int index) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -659,9 +371,9 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -688,9 +400,9 @@ public java.lang.String getOrganization() { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -719,8 +431,8 @@ public com.google.protobuf.ByteString getOrganizationBytes() { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -746,8 +458,8 @@ public java.lang.String getDisplayName() { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -777,8 +489,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -805,8 +517,8 @@ public java.lang.String getDescription() { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -836,8 +548,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -864,8 +576,8 @@ public java.lang.String getLocation() { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -919,11 +631,11 @@ public int getLabelsCount() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -950,11 +662,11 @@ public java.util.Map getLabels() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -972,11 +684,11 @@ public java.util.Map getLabelsMap() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -998,11 +710,11 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -1031,8 +743,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -1052,8 +764,8 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -1073,8 +785,8 @@ public int getNetworkTagsCount() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -1095,8 +807,8 @@ public java.lang.String getNetworkTags(int index) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -1118,18 +830,26 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { @@ -1149,18 +869,26 @@ public java.lang.String getKmsKey() { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { @@ -1173,6 +901,99 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } + public static final int KMS_KEYS_FIELD_NUMBER = 28; + private com.google.protobuf.LazyStringList kmsKeys_; + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @return A list containing the kmsKeys. + */ + public com.google.protobuf.ProtocolStringList getKmsKeysList() { + return kmsKeys_; + } + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @return The count of kmsKeys. + */ + public int getKmsKeysCount() { + return kmsKeys_.size(); + } + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the element to return. + * @return The kmsKeys at the given index. + */ + public java.lang.String getKmsKeys(int index) { + return kmsKeys_.get(index); + } + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. + */ + public com.google.protobuf.ByteString getKmsKeysBytes(int index) { + return kmsKeys_.getByteString(index); + } + public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** @@ -1183,7 +1004,7 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -1206,7 +1027,7 @@ public boolean hasCreateTime() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -1229,7 +1050,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -1254,7 +1075,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -1278,7 +1099,7 @@ public boolean hasUpdateTime() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -1302,7 +1123,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -1337,8 +1158,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` *
    * * string state = 13; @@ -1376,8 +1197,8 @@ public java.lang.String getState() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` *
    * * string state = 13; @@ -1416,7 +1237,7 @@ public com.google.protobuf.ByteString getStateBytes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. *
    @@ -1446,7 +1267,7 @@ public boolean hasAdditionalAttributes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. *
    @@ -1478,7 +1299,7 @@ public com.google.protobuf.Struct getAdditionalAttributes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. *
    @@ -1498,9 +1319,9 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * @@ -1526,9 +1347,9 @@ public java.lang.String getParentFullResourceName() { *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * @@ -1876,11 +1697,11 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.l *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1897,11 +1718,11 @@ public com.google.protobuf.ProtocolStringList getTagKeysList() { *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1918,11 +1739,11 @@ public int getTagKeysCount() { *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1940,11 +1761,11 @@ public java.lang.String getTagKeys(int index) { *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1966,12 +1787,12 @@ public com.google.protobuf.ByteString getTagKeysBytes(int index) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` *
    * @@ -1989,12 +1810,12 @@ public com.google.protobuf.ProtocolStringList getTagValuesList() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` *
    * @@ -2012,12 +1833,12 @@ public int getTagValuesCount() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` *
    * @@ -2036,12 +1857,12 @@ public java.lang.String getTagValues(int index) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` *
    * @@ -2062,10 +1883,10 @@ public com.google.protobuf.ByteString getTagValuesBytes(int index) { *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -2082,10 +1903,10 @@ public com.google.protobuf.ProtocolStringList getTagValueIdsList() { *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -2102,10 +1923,10 @@ public int getTagValueIdsCount() { *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -2123,10 +1944,10 @@ public java.lang.String getTagValueIds(int index) { *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -2147,9 +1968,9 @@ public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * @@ -2175,9 +1996,9 @@ public java.lang.String getParentAssetType() { *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * @@ -2276,10 +2097,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tagValueIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, tagValueIds_.getRaw(i)); } + for (int i = 0; i < kmsKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, kmsKeys_.getRaw(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAssetType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 103, parentAssetType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2397,10 +2221,18 @@ public int getSerializedSize() { size += dataSize; size += 2 * getTagValueIdsList().size(); } + { + int dataSize = 0; + for (int i = 0; i < kmsKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(kmsKeys_.getRaw(i)); + } + size += dataSize; + size += 2 * getKmsKeysList().size(); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAssetType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, parentAssetType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2427,6 +2259,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeysList().equals(other.getKmsKeysList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -2448,7 +2281,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTagValuesList().equals(other.getTagValuesList())) return false; if (!getTagValueIdsList().equals(other.getTagValueIdsList())) return false; if (!getParentAssetType().equals(other.getParentAssetType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2487,6 +2320,10 @@ public int hashCode() { } hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); + if (getKmsKeysCount() > 0) { + hash = (37 * hash) + KMS_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeysList().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -2529,7 +2366,7 @@ public int hashCode() { } hash = (37 * hash) + PARENT_ASSET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getParentAssetType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2634,7 +2471,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * A result of Resource Search, containing information of a cloud resource.
    -   * Next ID: 29
    +   * Next ID: 31
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} @@ -2683,20 +2520,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.asset.v1.ResourceSearchResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVersionedResourcesFieldBuilder(); - getAttachedResourcesFieldBuilder(); - } } @java.lang.Override @@ -2723,6 +2550,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); kmsKey_ = ""; + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -2747,23 +2576,25 @@ public Builder clear() { if (versionedResourcesBuilder_ == null) { versionedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + versionedResources_ = null; versionedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); if (attachedResourcesBuilder_ == null) { attachedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + attachedResources_ = null; attachedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableRelationships().clear(); tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); - tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); + tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); parentAssetType_ = ""; return this; @@ -2814,6 +2645,11 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.networkTags_ = networkTags_; result.kmsKey_ = kmsKey_; + if (((bitField0_ & 0x00000008) != 0)) { + kmsKeys_ = kmsKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.kmsKeys_ = kmsKeys_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -2832,18 +2668,18 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.parentFullResourceName_ = parentFullResourceName_; if (versionedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.versionedResources_ = versionedResources_; } else { result.versionedResources_ = versionedResourcesBuilder_.build(); } if (attachedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { attachedResources_ = java.util.Collections.unmodifiableList(attachedResources_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.attachedResources_ = attachedResources_; } else { @@ -2851,19 +2687,19 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.relationships_ = internalGetRelationships(); result.relationships_.makeImmutable(); - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { tagKeys_ = tagKeys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.tagKeys_ = tagKeys_; - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { tagValues_ = tagValues_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.tagValues_ = tagValues_; - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { tagValueIds_ = tagValueIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } result.tagValueIds_ = tagValueIds_; result.parentAssetType_ = parentAssetType_; @@ -2969,6 +2805,16 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { kmsKey_ = other.kmsKey_; onChanged(); } + if (!other.kmsKeys_.isEmpty()) { + if (kmsKeys_.isEmpty()) { + kmsKeys_ = other.kmsKeys_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureKmsKeysIsMutable(); + kmsKeys_.addAll(other.kmsKeys_); + } + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -2990,7 +2836,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.versionedResources_.isEmpty()) { if (versionedResources_.isEmpty()) { versionedResources_ = other.versionedResources_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureVersionedResourcesIsMutable(); versionedResources_.addAll(other.versionedResources_); @@ -3003,7 +2849,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { versionedResourcesBuilder_.dispose(); versionedResourcesBuilder_ = null; versionedResources_ = other.versionedResources_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); versionedResourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionedResourcesFieldBuilder() @@ -3017,7 +2863,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.attachedResources_.isEmpty()) { if (attachedResources_.isEmpty()) { attachedResources_ = other.attachedResources_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAttachedResourcesIsMutable(); attachedResources_.addAll(other.attachedResources_); @@ -3030,7 +2876,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { attachedResourcesBuilder_.dispose(); attachedResourcesBuilder_ = null; attachedResources_ = other.attachedResources_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); attachedResourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttachedResourcesFieldBuilder() @@ -3044,7 +2890,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.tagKeys_.isEmpty()) { if (tagKeys_.isEmpty()) { tagKeys_ = other.tagKeys_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTagKeysIsMutable(); tagKeys_.addAll(other.tagKeys_); @@ -3054,7 +2900,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.tagValues_.isEmpty()) { if (tagValues_.isEmpty()) { tagValues_ = other.tagValues_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTagValuesIsMutable(); tagValues_.addAll(other.tagValues_); @@ -3064,7 +2910,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.tagValueIds_.isEmpty()) { if (tagValueIds_.isEmpty()) { tagValueIds_ = other.tagValueIds_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureTagValueIdsIsMutable(); tagValueIds_.addAll(other.tagValueIds_); @@ -3075,7 +2921,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { parentAssetType_ = other.parentAssetType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3090,17 +2936,208 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ResourceSearchResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + project_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 66 + case 74: + { + input.readMessage( + getAdditionalAttributesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + state_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 130: + { + com.google.cloud.asset.v1.VersionedResource m = + input.readMessage( + com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry); + if (versionedResourcesBuilder_ == null) { + ensureVersionedResourcesIsMutable(); + versionedResources_.add(m); + } else { + versionedResourcesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 138 + case 146: + { + organization_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 154: + { + parentFullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 162: + { + com.google.cloud.asset.v1.AttachedResource m = + input.readMessage( + com.google.cloud.asset.v1.AttachedResource.parser(), extensionRegistry); + if (attachedResourcesBuilder_ == null) { + ensureAttachedResourcesIsMutable(); + attachedResources_.add(m); + } else { + attachedResourcesBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.asset.v1.RelatedResources> + relationships__ = + input.readMessage( + RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRelationships() + .getMutableMap() + .put(relationships__.getKey(), relationships__.getValue()); + break; + } // case 170 + case 186: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagKeysIsMutable(); + tagKeys_.add(s); + break; + } // case 186 + case 202: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagValuesIsMutable(); + tagValues_.add(s); + break; + } // case 202 + case 210: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagValueIdsIsMutable(); + tagValueIds_.add(s); + break; + } // case 210 + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKmsKeysIsMutable(); + kmsKeys_.add(s); + break; + } // case 226 + case 826: + { + parentAssetType_ = input.readStringRequireUtf8(); + + break; + } // case 826 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ResourceSearchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3117,8 +3154,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; @@ -3146,8 +3183,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; @@ -3175,8 +3212,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; @@ -3203,8 +3240,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; @@ -3227,8 +3264,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; @@ -3254,7 +3291,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; @@ -3278,7 +3315,7 @@ public java.lang.String getAssetType() { *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; @@ -3302,7 +3339,7 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; @@ -3325,7 +3362,7 @@ public Builder setAssetType(java.lang.String value) { *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; @@ -3344,7 +3381,7 @@ public Builder clearAssetType() { *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; @@ -3372,9 +3409,9 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -3400,9 +3437,9 @@ public java.lang.String getProject() { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -3428,9 +3465,9 @@ public com.google.protobuf.ByteString getProjectBytes() { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -3455,9 +3492,9 @@ public Builder setProject(java.lang.String value) { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -3478,9 +3515,9 @@ public Builder clearProject() { * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. *
    * * string project = 3; @@ -3516,9 +3553,9 @@ private void ensureFoldersIsMutable() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3536,9 +3573,9 @@ public com.google.protobuf.ProtocolStringList getFoldersList() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3556,9 +3593,9 @@ public int getFoldersCount() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3577,9 +3614,9 @@ public java.lang.String getFolders(int index) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3598,9 +3635,9 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3626,9 +3663,9 @@ public Builder setFolders(int index, java.lang.String value) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3653,9 +3690,9 @@ public Builder addFolders(java.lang.String value) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3677,9 +3714,9 @@ public Builder addAllFolders(java.lang.Iterable values) { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3700,9 +3737,9 @@ public Builder clearFolders() { * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. *
    * * repeated string folders = 17; @@ -3730,9 +3767,9 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -3758,9 +3795,9 @@ public java.lang.String getOrganization() { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -3786,9 +3823,9 @@ public com.google.protobuf.ByteString getOrganizationBytes() { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -3813,9 +3850,9 @@ public Builder setOrganization(java.lang.String value) { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -3836,9 +3873,9 @@ public Builder clearOrganization() { * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. *
    * * string organization = 18; @@ -3865,8 +3902,8 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -3891,8 +3928,8 @@ public java.lang.String getDisplayName() { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -3917,8 +3954,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -3942,8 +3979,8 @@ public Builder setDisplayName(java.lang.String value) { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -3963,8 +4000,8 @@ public Builder clearDisplayName() { * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` *
    * * string display_name = 4; @@ -3992,8 +4029,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -4019,8 +4056,8 @@ public java.lang.String getDescription() { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -4046,8 +4083,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -4072,8 +4109,8 @@ public Builder setDescription(java.lang.String value) { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -4094,8 +4131,8 @@ public Builder clearDescription() { * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` *
    * * string description = 5; @@ -4123,8 +4160,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -4150,8 +4187,8 @@ public java.lang.String getLocation() { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -4177,8 +4214,8 @@ public com.google.protobuf.ByteString getLocationBytes() { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -4203,8 +4240,8 @@ public Builder setLocation(java.lang.String value) { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -4225,8 +4262,8 @@ public Builder clearLocation() { * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -4279,11 +4316,11 @@ public int getLabelsCount() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4310,11 +4347,11 @@ public java.util.Map getLabels() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4332,11 +4369,11 @@ public java.util.Map getLabelsMap() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4359,11 +4396,11 @@ public java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4393,11 +4430,11 @@ public Builder clearLabels() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4423,11 +4460,11 @@ public java.util.Map getMutableLabels() { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4452,11 +4489,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` *
    * * map<string, string> labels = 7; @@ -4485,8 +4522,8 @@ private void ensureNetworkTagsIsMutable() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4506,8 +4543,8 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4527,8 +4564,8 @@ public int getNetworkTagsCount() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4549,8 +4586,8 @@ public java.lang.String getNetworkTags(int index) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4571,8 +4608,8 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4600,8 +4637,8 @@ public Builder setNetworkTags(int index, java.lang.String value) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4628,8 +4665,8 @@ public Builder addNetworkTags(java.lang.String value) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4653,8 +4690,8 @@ public Builder addAllNetworkTags(java.lang.Iterable values) { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4677,8 +4714,8 @@ public Builder clearNetworkTags() { * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -4706,17 +4743,25 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ + @java.lang.Deprecated public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { @@ -4736,17 +4781,25 @@ public java.lang.String getKmsKey() { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { @@ -4766,18 +4819,26 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @param value The kmsKey to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setKmsKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -4795,17 +4856,25 @@ public Builder setKmsKey(java.lang.String value) { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearKmsKey() { kmsKey_ = getDefaultInstance().getKmsKey(); @@ -4820,18 +4889,26 @@ public Builder clearKmsKey() { * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` *
    * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4843,6 +4920,246 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList kmsKeys_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureKmsKeysIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + kmsKeys_ = new com.google.protobuf.LazyStringArrayList(kmsKeys_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @return A list containing the kmsKeys. + */ + public com.google.protobuf.ProtocolStringList getKmsKeysList() { + return kmsKeys_.getUnmodifiableView(); + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @return The count of kmsKeys. + */ + public int getKmsKeysCount() { + return kmsKeys_.size(); + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the element to return. + * @return The kmsKeys at the given index. + */ + public java.lang.String getKmsKeys(int index) { + return kmsKeys_.get(index); + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. + */ + public com.google.protobuf.ByteString getKmsKeysBytes(int index) { + return kmsKeys_.getByteString(index); + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index to set the value at. + * @param value The kmsKeys to set. + * @return This builder for chaining. + */ + public Builder setKmsKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); + kmsKeys_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param value The kmsKeys to add. + * @return This builder for chaining. + */ + public Builder addKmsKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); + kmsKeys_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param values The kmsKeys to add. + * @return This builder for chaining. + */ + public Builder addAllKmsKeys(java.lang.Iterable values) { + ensureKmsKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeys_); + onChanged(); + return this; + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeys() { + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * + * @param value The bytes of the kmsKeys to add. + * @return This builder for chaining. + */ + public Builder addKmsKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKmsKeysIsMutable(); + kmsKeys_.add(value); + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -4857,7 +5174,7 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -4879,7 +5196,7 @@ public boolean hasCreateTime() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -4907,7 +5224,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -4937,7 +5254,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -4964,7 +5281,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -4996,7 +5313,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -5024,7 +5341,7 @@ public Builder clearCreateTime() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -5046,7 +5363,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -5072,7 +5389,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -5113,7 +5430,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5136,7 +5453,7 @@ public boolean hasUpdateTime() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5165,7 +5482,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5196,7 +5513,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5224,7 +5541,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5257,7 +5574,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5286,7 +5603,7 @@ public Builder clearUpdateTime() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5309,7 +5626,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5336,7 +5653,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -5382,8 +5699,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -5420,8 +5737,8 @@ public java.lang.String getState() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -5458,8 +5775,8 @@ public com.google.protobuf.ByteString getStateBytes() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -5495,8 +5812,8 @@ public Builder setState(java.lang.String value) { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -5528,8 +5845,8 @@ public Builder clearState() { * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -5571,7 +5888,7 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5600,7 +5917,7 @@ public boolean hasAdditionalAttributes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5635,7 +5952,7 @@ public com.google.protobuf.Struct getAdditionalAttributes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5672,7 +5989,7 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5706,7 +6023,7 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builde * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5747,7 +6064,7 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5782,7 +6099,7 @@ public Builder clearAdditionalAttributes() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5811,7 +6128,7 @@ public com.google.protobuf.Struct.Builder getAdditionalAttributesBuilder() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5844,7 +6161,7 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -5875,9 +6192,9 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * @@ -5902,9 +6219,9 @@ public java.lang.String getParentFullResourceName() { *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * @@ -5929,9 +6246,9 @@ public com.google.protobuf.ByteString getParentFullResourceNameBytes() { *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * @@ -5955,9 +6272,9 @@ public Builder setParentFullResourceName(java.lang.String value) { *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * @@ -5977,9 +6294,9 @@ public Builder clearParentFullResourceName() { *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * @@ -6003,11 +6320,11 @@ public Builder setParentFullResourceNameBytes(com.google.protobuf.ByteString val java.util.Collections.emptyList(); private void ensureVersionedResourcesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { versionedResources_ = new java.util.ArrayList( versionedResources_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -6280,7 +6597,7 @@ public Builder addAllVersionedResources( public Builder clearVersionedResources() { if (versionedResourcesBuilder_ == null) { versionedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { versionedResourcesBuilder_.clear(); @@ -6441,7 +6758,7 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder>( versionedResources_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); versionedResources_ = null; @@ -6453,10 +6770,10 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources java.util.Collections.emptyList(); private void ensureAttachedResourcesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { attachedResources_ = new java.util.ArrayList(attachedResources_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -6729,7 +7046,7 @@ public Builder addAllAttachedResources( public Builder clearAttachedResources() { if (attachedResourcesBuilder_ == null) { attachedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { attachedResourcesBuilder_.clear(); @@ -6890,7 +7207,7 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder>( attachedResources_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); attachedResources_ = null; @@ -7110,9 +7427,9 @@ public Builder putAllRelationships( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagKeysIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { tagKeys_ = new com.google.protobuf.LazyStringArrayList(tagKeys_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } /** @@ -7121,11 +7438,11 @@ private void ensureTagKeysIsMutable() { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7142,11 +7459,11 @@ public com.google.protobuf.ProtocolStringList getTagKeysList() { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7163,11 +7480,11 @@ public int getTagKeysCount() { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7185,11 +7502,11 @@ public java.lang.String getTagKeys(int index) { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7207,11 +7524,11 @@ public com.google.protobuf.ByteString getTagKeysBytes(int index) { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7236,11 +7553,11 @@ public Builder setTagKeys(int index, java.lang.String value) { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7264,11 +7581,11 @@ public Builder addTagKeys(java.lang.String value) { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7289,11 +7606,11 @@ public Builder addAllTagKeys(java.lang.Iterable values) { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7303,7 +7620,7 @@ public Builder addAllTagKeys(java.lang.Iterable values) { */ public Builder clearTagKeys() { tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -7313,11 +7630,11 @@ public Builder clearTagKeys() { *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * @@ -7341,9 +7658,9 @@ public Builder addTagKeysBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagValuesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { tagValues_ = new com.google.protobuf.LazyStringArrayList(tagValues_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } /** @@ -7353,12 +7670,12 @@ private void ensureTagValuesIsMutable() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7376,12 +7693,12 @@ public com.google.protobuf.ProtocolStringList getTagValuesList() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7399,12 +7716,12 @@ public int getTagValuesCount() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7423,12 +7740,12 @@ public java.lang.String getTagValues(int index) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7447,12 +7764,12 @@ public com.google.protobuf.ByteString getTagValuesBytes(int index) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7478,12 +7795,12 @@ public Builder setTagValues(int index, java.lang.String value) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7508,12 +7825,12 @@ public Builder addTagValues(java.lang.String value) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7535,12 +7852,12 @@ public Builder addAllTagValues(java.lang.Iterable values) { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7550,7 +7867,7 @@ public Builder addAllTagValues(java.lang.Iterable values) { */ public Builder clearTagValues() { tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -7561,12 +7878,12 @@ public Builder clearTagValues() { * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -7590,9 +7907,9 @@ public Builder addTagValuesBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagValueIdsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { tagValueIds_ = new com.google.protobuf.LazyStringArrayList(tagValueIds_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } /** @@ -7601,10 +7918,10 @@ private void ensureTagValueIdsIsMutable() { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7621,10 +7938,10 @@ public com.google.protobuf.ProtocolStringList getTagValueIdsList() { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7641,10 +7958,10 @@ public int getTagValueIdsCount() { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7662,10 +7979,10 @@ public java.lang.String getTagValueIds(int index) { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7683,10 +8000,10 @@ public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7711,10 +8028,10 @@ public Builder setTagValueIds(int index, java.lang.String value) { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7738,10 +8055,10 @@ public Builder addTagValueIds(java.lang.String value) { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7762,10 +8079,10 @@ public Builder addAllTagValueIds(java.lang.Iterable values) { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7775,7 +8092,7 @@ public Builder addAllTagValueIds(java.lang.Iterable values) { */ public Builder clearTagValueIds() { tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -7785,10 +8102,10 @@ public Builder clearTagValueIds() { *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * @@ -7815,9 +8132,9 @@ public Builder addTagValueIdsBytes(com.google.protobuf.ByteString value) { *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * @@ -7842,9 +8159,9 @@ public java.lang.String getParentAssetType() { *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * @@ -7869,9 +8186,9 @@ public com.google.protobuf.ByteString getParentAssetTypeBytes() { *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * @@ -7895,9 +8212,9 @@ public Builder setParentAssetType(java.lang.String value) { *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * @@ -7917,9 +8234,9 @@ public Builder clearParentAssetType() { *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * @@ -7971,7 +8288,18 @@ public ResourceSearchResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSearchResult(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java index 5ab43ef5d8bb..629c71ab92ee 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java +++ b/java-asset/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; @@ -68,7 +68,7 @@ public interface ResourceSearchResultOrBuilder *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; @@ -82,7 +82,7 @@ public interface ResourceSearchResultOrBuilder *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; @@ -99,9 +99,9 @@ public interface ResourceSearchResultOrBuilder * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. * * * string project = 3; @@ -117,9 +117,9 @@ public interface ResourceSearchResultOrBuilder * projects/{PROJECT_NUMBER}. This field is available when the resource * belongs to a project. * To search against `project`: - * * use a field query. Example: `project:12345` - * * use a free text query. Example: `12345` - * * specify the `scope` field as this project in your search request. + * * Use a field query. Example: `project:12345` + * * Use a free text query. Example: `12345` + * * Specify the `scope` field as this project in your search request. * * * string project = 3; @@ -136,9 +136,9 @@ public interface ResourceSearchResultOrBuilder * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. * * * repeated string folders = 17; @@ -154,9 +154,9 @@ public interface ResourceSearchResultOrBuilder * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. * * * repeated string folders = 17; @@ -172,9 +172,9 @@ public interface ResourceSearchResultOrBuilder * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. * * * repeated string folders = 17; @@ -191,9 +191,9 @@ public interface ResourceSearchResultOrBuilder * folders/{FOLDER_NUMBER}. This field is available when the resource * belongs to one or more folders. * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. + * * Use a field query. Example: `folders:(123 OR 456)` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this folder in your search request. * * * repeated string folders = 17; @@ -211,9 +211,9 @@ public interface ResourceSearchResultOrBuilder * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. * * * string organization = 18; @@ -229,9 +229,9 @@ public interface ResourceSearchResultOrBuilder * organizations/{ORGANIZATION_NUMBER}. This field is available when the * resource belongs to an organization. * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. + * * Use a field query. Example: `organization:123` + * * Use a free text query. Example: `123` + * * Specify the `scope` field as this organization in your search request. * * * string organization = 18; @@ -247,8 +247,8 @@ public interface ResourceSearchResultOrBuilder * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` * * * string display_name = 4; @@ -263,8 +263,8 @@ public interface ResourceSearchResultOrBuilder * The display name of this resource. This field is available only when the * resource's Protobuf contains it. * To search against the `display_name`: - * * use a field query. Example: `displayName:"My Instance"` - * * use a free text query. Example: `"My Instance"` + * * Use a field query. Example: `displayName:"My Instance"` + * * Use a free text query. Example: `"My Instance"` * * * string display_name = 4; @@ -281,8 +281,8 @@ public interface ResourceSearchResultOrBuilder * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` * * * string description = 5; @@ -298,8 +298,8 @@ public interface ResourceSearchResultOrBuilder * could be up to 1M bytes. This field is available only when the resource's * Protobuf contains it. * To search against the `description`: - * * use a field query. Example: `description:"important instance"` - * * use a free text query. Example: `"important instance"` + * * Use a field query. Example: `description:"important instance"` + * * Use a free text query. Example: `"important instance"` * * * string description = 5; @@ -316,8 +316,8 @@ public interface ResourceSearchResultOrBuilder * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -333,8 +333,8 @@ public interface ResourceSearchResultOrBuilder * `us-west1-b`. This field is available only when the resource's Protobuf * contains it. * 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; @@ -352,11 +352,11 @@ public interface ResourceSearchResultOrBuilder * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -371,11 +371,11 @@ public interface ResourceSearchResultOrBuilder * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -393,11 +393,11 @@ public interface ResourceSearchResultOrBuilder * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -412,11 +412,11 @@ public interface ResourceSearchResultOrBuilder * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -436,11 +436,11 @@ java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * To search against the `labels`: - * * use a field query: + * * 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` + * * Use a free text query. Example: `prod` * * * map<string, string> labels = 7; @@ -457,8 +457,8 @@ java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -476,8 +476,8 @@ java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -495,8 +495,8 @@ java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -515,8 +515,8 @@ java.lang.String getLabelsOrDefault( * for more information. This field is available only when the resource's * Protobuf contains it. * 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; @@ -534,17 +534,25 @@ java.lang.String getLabelsOrDefault( * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` * * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ + @java.lang.Deprecated java.lang.String getKmsKey(); /** * @@ -554,19 +562,110 @@ java.lang.String getLabelsOrDefault( * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) * name or * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. This field is available only when the resource's Protobuf contains - * it. + * name. + * This field only presents for the purpose of backward compatibility. Please + * use the `kms_keys` field to retrieve KMS key information. This field is + * available only when the resource's Protobuf contains it and will only be + * populated for [these resource + * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) + * for backward compatible purposes. * To search against the `kms_key`: - * * use a field query. Example: `kmsKey:key` - * * use a free text query. Example: `key` + * * Use a field query. Example: `kmsKey:key` + * * Use a free text query. Example: `key` * * - * string kms_key = 10; + * string kms_key = 10 [deprecated = true]; * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ + @java.lang.Deprecated com.google.protobuf.ByteString getKmsKeyBytes(); + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @return A list containing the kmsKeys. + */ + java.util.List getKmsKeysList(); + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @return The count of kmsKeys. + */ + int getKmsKeysCount(); + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the element to return. + * @return The kmsKeys at the given index. + */ + java.lang.String getKmsKeys(int index); + /** + * + * + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. + */ + com.google.protobuf.ByteString getKmsKeysBytes(int index); + /** * * @@ -575,7 +674,7 @@ java.lang.String getLabelsOrDefault( * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -595,7 +694,7 @@ java.lang.String getLabelsOrDefault( * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -615,7 +714,7 @@ java.lang.String getLabelsOrDefault( * The granularity is in seconds. Timestamp.nanos will always be 0. This field * is available only when the resource's Protobuf contains it. * To search against `create_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `createTime > 1609459200` * - value in date string. Example: `createTime > 2021-01-01` * - value in date-time string (must be quoted). Example: `createTime > @@ -635,7 +734,7 @@ java.lang.String getLabelsOrDefault( * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -656,7 +755,7 @@ java.lang.String getLabelsOrDefault( * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -677,7 +776,7 @@ java.lang.String getLabelsOrDefault( * always be 0. This field is available only when the resource's Protobuf * contains it. * To search against `update_time`: - * * use a field query. + * * Use a field query. * - value in seconds since unix epoch. Example: `updateTime < 1609459200` * - value in date string. Example: `updateTime < 2021-01-01` * - value in date-time string (must be quoted). Example: `updateTime < @@ -707,8 +806,8 @@ java.lang.String getLabelsOrDefault( * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -735,8 +834,8 @@ java.lang.String getLabelsOrDefault( * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). * To search against the `state`: - * * use a field query. Example: `state:RUNNING` - * * use a free text query. Example: `RUNNING` + * * Use a field query. Example: `state:RUNNING` + * * Use a free text query. Example: `RUNNING` * * * string state = 13; @@ -762,7 +861,7 @@ java.lang.String getLabelsOrDefault( * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -789,7 +888,7 @@ java.lang.String getLabelsOrDefault( * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -816,7 +915,7 @@ java.lang.String getLabelsOrDefault( * 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 + * * Use a free text query to match the attributes values. Example: to search * `additional_attributes = { dnsName: "foobar" }`, you can issue a query * `foobar`. * @@ -831,9 +930,9 @@ java.lang.String getLabelsOrDefault( *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * @@ -848,9 +947,9 @@ java.lang.String getLabelsOrDefault( *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * @@ -1104,11 +1203,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1123,11 +1222,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1142,11 +1241,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1162,11 +1261,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * @@ -1184,12 +1283,12 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -1205,12 +1304,12 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -1226,12 +1325,12 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -1248,12 +1347,12 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( * TagValue namespaced names, in the format of * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. * To search against the `tagValues`: - * * use a field query. Example: + * * Use a field query. Example: * - `tagValues:"env"` * - `tagValues:"env/prod"` * - `tagValues:"123456789/env/prod*"` * - `tagValues="123456789/env/prod"` - * * use a free text query. Example: + * * Use a free text query. Example: * - `prod` * * @@ -1270,10 +1369,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -1288,10 +1387,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -1306,10 +1405,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -1325,10 +1424,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * @@ -1345,9 +1444,9 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * @@ -1362,9 +1461,9 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault( *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java index 68a2b9c59abf..380c435ed825 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java @@ -55,134 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SavedQuery( - 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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastUpdateTime_ != null) { - subBuilder = lastUpdateTime_.toBuilder(); - } - lastUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastUpdateTime_); - lastUpdateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - lastUpdater_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 66: - { - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder subBuilder = null; - if (content_ != null) { - subBuilder = content_.toBuilder(); - } - content_ = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.QueryContent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_SavedQuery_descriptor; @@ -219,11 +91,8 @@ public interface QueryContentOrBuilder * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -236,11 +105,8 @@ public interface QueryContentOrBuilder * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -253,11 +119,8 @@ public interface QueryContentOrBuilder * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -298,65 +161,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryContent( - 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.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (queryContentCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_) - .toBuilder(); - } - queryContent_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); - queryContent_ = subBuilder.buildPartial(); - } - queryContentCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - 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_SavedQuery_QueryContent_descriptor; @@ -422,11 +226,8 @@ public QueryContentCase getQueryContentCase() { * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -442,11 +243,8 @@ public boolean hasIamPolicyAnalysisQuery() { * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -465,11 +263,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -500,7 +295,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryContentCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -514,7 +309,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -538,7 +333,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -557,7 +352,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -688,22 +483,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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(); + if (iamPolicyAnalysisQueryBuilder_ != null) { + iamPolicyAnalysisQueryBuilder_.clear(); + } queryContentCase_ = 0; queryContent_ = null; return this; @@ -804,7 +595,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery.QueryContent other break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -819,18 +610,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SavedQuery.QueryContent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getIamPolicyAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + queryContentCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SavedQuery.QueryContent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -858,11 +669,8 @@ public Builder clearQueryContent() { * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -878,11 +686,8 @@ public boolean hasIamPolicyAnalysisQuery() { * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -908,11 +713,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -936,11 +738,8 @@ public Builder setIamPolicyAnalysisQuery( * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -961,11 +760,8 @@ public Builder setIamPolicyAnalysisQuery( * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1000,11 +796,8 @@ public Builder mergeIamPolicyAnalysisQuery( * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1030,11 +823,8 @@ public Builder clearIamPolicyAnalysisQuery() { * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1048,11 +838,8 @@ public Builder clearIamPolicyAnalysisQuery() { * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1074,11 +861,8 @@ public Builder clearIamPolicyAnalysisQuery() { * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1141,7 +925,19 @@ public QueryContent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryContent(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1424,8 +1220,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1448,8 +1243,7 @@ public java.lang.String getLastUpdater() { * * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1660,7 +1454,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (content_ != null) { output.writeMessage(8, getContent()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1700,7 +1494,7 @@ public int getSerializedSize() { if (content_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getContent()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1732,7 +1526,7 @@ public boolean equals(final java.lang.Object obj) { if (hasContent()) { if (!getContent().equals(other.getContent())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1767,7 +1561,7 @@ public int hashCode() { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1915,17 +1709,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.asset.v1.SavedQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2081,7 +1868,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery other) { if (other.hasContent()) { mergeContent(other.getContent()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2096,17 +1883,84 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SavedQuery parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + creator_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + lastUpdater_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.SavedQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2859,8 +2713,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2882,8 +2735,7 @@ public java.lang.String getLastUpdater() { * * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2905,8 +2757,7 @@ public com.google.protobuf.ByteString getLastUpdaterBytes() { * * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2927,8 +2778,7 @@ public Builder setLastUpdater(java.lang.String value) { * * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2945,8 +2795,7 @@ public Builder clearLastUpdater() { * * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3355,7 +3204,18 @@ public SavedQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedQuery(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java index 190e281c4619..47d332806297 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java @@ -189,8 +189,7 @@ public interface SavedQueryOrBuilder * * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -202,8 +201,7 @@ public interface SavedQueryOrBuilder * * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java index bc161aa4512c..6395b1ceddd7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java @@ -56,92 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SearchAllIamPoliciesRequest( - 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(); - - scope_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.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_SearchAllIamPoliciesRequest_descriptor; @@ -163,9 +77,9 @@ 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`. The caller must
    -   * be granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -195,9 +109,9 @@ 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`. The caller must
    -   * be granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -357,11 +271,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]; @@ -379,10 +292,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]; @@ -405,10 +318,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]; @@ -434,9 +347,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -461,9 +373,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -488,9 +399,8 @@ public int getAssetTypesCount() {
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -516,9 +426,8 @@ public java.lang.String getAssetTypes(int index) {
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -547,9 +456,9 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
        *
        *
        * 
    -   * 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.
    +   * 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: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -579,9 +488,9 @@ 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.
    +   * 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: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -640,7 +549,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 7, orderBy_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -672,7 +581,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -694,7 +603,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getPageToken().equals(other.getPageToken())) return false;
         if (!getAssetTypesList().equals(other.getAssetTypesList())) return false;
         if (!getOrderBy().equals(other.getOrderBy())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -719,7 +628,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
         hash = (53 * hash) + getOrderBy().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -849,17 +758,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -994,7 +896,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest o
             orderBy_ = other.orderBy_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1009,18 +911,68 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                scope_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                query_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 24:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            case 34:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 42
    +            case 58:
    +              {
    +                orderBy_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 58
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1031,9 +983,9 @@ 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`. The caller must
    -     * be granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1062,9 +1014,9 @@ 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`. The caller must
    -     * be granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1093,9 +1045,9 @@ 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`. The caller must
    -     * be granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1123,9 +1075,9 @@ 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`. The caller must
    -     * be granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1149,9 +1101,9 @@ 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`. The caller must
    -     * be granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1483,11 +1435,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]; @@ -1502,11 +1453,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]; @@ -1524,11 +1474,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]; @@ -1547,10 +1496,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]; @@ -1572,10 +1521,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]; @@ -1597,10 +1546,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]; @@ -1621,10 +1570,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]; @@ -1641,10 +1590,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]; @@ -1676,9 +1625,8 @@ private void ensureAssetTypesIsMutable() { * * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1703,9 +1651,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1730,9 +1677,8 @@ public int getAssetTypesCount() {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1758,9 +1704,8 @@ public java.lang.String getAssetTypes(int index) {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1786,9 +1731,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1821,9 +1765,8 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1855,9 +1798,8 @@ public Builder addAssetTypes(java.lang.String value) {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1886,9 +1828,8 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1916,9 +1857,8 @@ public Builder clearAssetTypes() {
          *
          *
          * 
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1953,9 +1893,9 @@ public Builder addAssetTypesBytes(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.
    +     * 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: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -1984,9 +1924,9 @@ 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.
    +     * 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: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2015,9 +1955,9 @@ 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.
    +     * 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: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2045,9 +1985,9 @@ 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.
    +     * 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: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2071,9 +2011,9 @@ 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.
    +     * 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: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2131,7 +2071,18 @@ public SearchAllIamPoliciesRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllIamPoliciesRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java
    index 672fb1a95d96..091d9ca9146b 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java
    @@ -27,9 +27,9 @@ 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`. The caller must
    -   * be granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -48,9 +48,9 @@ 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`. The caller must
    -   * be granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -173,11 +173,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]; @@ -190,10 +189,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]; @@ -205,10 +204,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]; @@ -221,9 +220,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder * * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -246,9 +244,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -271,9 +268,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -297,9 +293,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        *
        *
        * 
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -324,9 +319,9 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        *
        *
        * 
    -   * 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.
    +   * 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: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -345,9 +340,9 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        *
        *
        * 
    -   * 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.
    +   * 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: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java
    index c8ed054de7fb..fec542c8fade 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java
    @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllIamPoliciesResponse(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                results_ =
    -                    new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              results_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicySearchResult.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        results_ = java.util.Collections.unmodifiableList(results_);
    -      }
    -      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_SearchAllIamPoliciesResponse_descriptor;
    @@ -277,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -292,7 +230,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -310,7 +248,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getResultsList().equals(other.getResultsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -327,7 +265,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -457,19 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getResultsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -477,10 +406,11 @@ public Builder clear() {
           super.clear();
           if (resultsBuilder_ == null) {
             results_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        results_ = null;
             resultsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -602,7 +532,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -617,18 +547,51 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1.IamPolicySearchResult m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.IamPolicySearchResult.parser(),
    +                        extensionRegistry);
    +                if (resultsBuilder_ == null) {
    +                  ensureResultsIsMutable();
    +                  results_.add(m);
    +                } else {
    +                  resultsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1151,7 +1114,18 @@ public SearchAllIamPoliciesResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllIamPoliciesResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java
    index 4aabc0485ac6..1004448093a8 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java
    @@ -56,107 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllResourcesRequest(
    -      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();
    -
    -              scope_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              query_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              orderBy_ = s;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (readMask_ != null) {
    -                subBuilder = readMask_.toBuilder();
    -              }
    -              readMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readMask_);
    -                readMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetTypes_ = assetTypes_.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_SearchAllResourcesRequest_descriptor;
    @@ -178,9 +77,8 @@ 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`. The caller must be
    -   * granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -210,9 +108,8 @@ 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`. The caller must be
    -   * granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -264,7 +161,11 @@ public com.google.protobuf.ByteString getScopeBytes() {
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -332,7 +233,11 @@ public java.lang.String getQuery() {
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -384,8 +289,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -408,8 +313,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -432,8 +337,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -457,8 +362,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -485,11 +390,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]; @@ -507,10 +411,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]; @@ -533,10 +437,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]; @@ -562,9 +466,9 @@ 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.
    +   * 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 singular primitive fields in the response are sortable:
        *   * name
    @@ -573,15 +477,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * 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.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -604,9 +507,9 @@ 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.
    +   * 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 singular primitive fields in the response are sortable:
        *   * name
    @@ -615,15 +518,14 @@ public java.lang.String getOrderBy() {
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * 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.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -649,10 +551,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -666,7 +568,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -692,10 +596,10 @@ public boolean hasReadMask() {
        *
        *
        * 
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -709,7 +613,9 @@ public boolean hasReadMask() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -735,10 +641,10 @@ public com.google.protobuf.FieldMask getReadMask() {
        *
        *
        * 
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -752,7 +658,9 @@ public com.google.protobuf.FieldMask getReadMask() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -808,7 +716,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (readMask_ != null) {
           output.writeMessage(8, getReadMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -843,7 +751,7 @@ public int getSerializedSize() {
         if (readMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -869,7 +777,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasReadMask()) {
           if (!getReadMask().equals(other.getReadMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -898,7 +806,7 @@ public int hashCode() {
           hash = (37 * hash) + READ_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getReadMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1027,17 +935,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.SearchAllResourcesRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1186,7 +1087,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesRequest oth
           if (other.hasReadMask()) {
             mergeReadMask(other.getReadMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1201,18 +1102,74 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.SearchAllResourcesRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                scope_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                query_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                orderBy_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 50
    +            case 66:
    +              {
    +                input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 66
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.SearchAllResourcesRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1223,9 +1180,8 @@ 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`. The caller must be
    -     * granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1254,9 +1210,8 @@ 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`. The caller must be
    -     * granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1285,9 +1240,8 @@ 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`. The caller must be
    -     * granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1315,9 +1269,8 @@ 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`. The caller must be
    -     * granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1341,9 +1294,8 @@ 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`. The caller must be
    -     * granted the
    +     * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1393,7 +1345,11 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1460,7 +1416,11 @@ public java.lang.String getQuery() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1527,7 +1487,11 @@ public com.google.protobuf.ByteString getQueryBytes() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1593,7 +1557,11 @@ public Builder setQuery(java.lang.String value) {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1655,7 +1623,11 @@ public Builder clearQuery() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1713,8 +1685,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1737,8 +1709,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1761,8 +1733,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1786,8 +1758,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1811,8 +1783,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1843,8 +1815,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1874,8 +1846,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1902,8 +1874,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1929,8 +1901,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).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1963,11 +1935,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]; @@ -1982,11 +1953,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]; @@ -2004,11 +1974,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]; @@ -2027,10 +1996,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]; @@ -2052,10 +2021,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]; @@ -2077,10 +2046,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]; @@ -2101,10 +2070,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]; @@ -2121,10 +2090,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]; @@ -2148,9 +2117,9 @@ 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.
    +     * 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 singular primitive fields in the response are sortable:
          *   * name
    @@ -2159,15 +2128,14 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * 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.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2189,9 +2157,9 @@ 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.
    +     * 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 singular primitive fields in the response are sortable:
          *   * name
    @@ -2200,15 +2168,14 @@ public java.lang.String getOrderBy() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * 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.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2230,9 +2197,9 @@ 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.
    +     * 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 singular primitive fields in the response are sortable:
          *   * name
    @@ -2241,15 +2208,14 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * 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.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2270,9 +2236,9 @@ 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.
    +     * 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 singular primitive fields in the response are sortable:
          *   * name
    @@ -2281,15 +2247,14 @@ public Builder setOrderBy(java.lang.String value) {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * 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.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2306,9 +2271,9 @@ 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.
    +     * 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 singular primitive fields in the response are sortable:
          *   * name
    @@ -2317,15 +2282,14 @@ public Builder clearOrderBy() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * 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.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2354,10 +2318,10 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2371,7 +2335,9 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2396,10 +2362,10 @@ public boolean hasReadMask() {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2413,7 +2379,9 @@ public boolean hasReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2442,10 +2410,10 @@ public com.google.protobuf.FieldMask getReadMask() {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2459,7 +2427,9 @@ public com.google.protobuf.FieldMask getReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2492,10 +2462,10 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2509,7 +2479,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2539,10 +2511,10 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2556,7 +2528,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2591,10 +2565,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2608,7 +2582,9 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2639,10 +2615,10 @@ public Builder clearReadMask() {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2656,7 +2632,9 @@ public Builder clearReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2681,10 +2659,10 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2698,7 +2676,9 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2725,10 +2705,10 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
          *
          *
          * 
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2742,7 +2722,9 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2807,7 +2789,18 @@ public SearchAllResourcesRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllResourcesRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java
    index c80c143d27bc..ca3584be025f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java
    @@ -27,9 +27,8 @@ 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`. The caller must be
    -   * granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -48,9 +47,8 @@ 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`. The caller must be
    -   * granted the
    +   * 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -89,7 +87,11 @@ public interface SearchAllResourcesRequestOrBuilder
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -146,7 +148,11 @@ public interface SearchAllResourcesRequestOrBuilder
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -185,8 +191,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -207,8 +213,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -229,8 +235,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -252,8 +258,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).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -276,11 +282,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]; @@ -293,10 +298,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]; @@ -308,10 +313,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]; @@ -324,9 +329,9 @@ 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.
    +   * 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 singular primitive fields in the response are sortable:
        *   * name
    @@ -335,15 +340,14 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * 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.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -355,9 +359,9 @@ 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.
    +   * 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 singular primitive fields in the response are sortable:
        *   * name
    @@ -366,15 +370,14 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * 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.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -387,10 +390,10 @@ public interface SearchAllResourcesRequestOrBuilder * * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -404,7 +407,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -427,10 +432,10 @@ public interface SearchAllResourcesRequestOrBuilder
        *
        *
        * 
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -444,7 +449,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -467,10 +474,10 @@ public interface SearchAllResourcesRequestOrBuilder
        *
        *
        * 
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -484,7 +491,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java
    index a5e70696eed6..da48ddded3b7 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java
    @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllResourcesResponse(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                results_ =
    -                    new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              results_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.ResourceSearchResult.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        results_ = java.util.Collections.unmodifiableList(results_);
    -      }
    -      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_SearchAllResourcesResponse_descriptor;
    @@ -277,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -292,7 +230,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -310,7 +248,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getResultsList().equals(other.getResultsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -327,7 +265,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -456,19 +394,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.SearchAllResourcesResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getResultsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -476,10 +405,11 @@ public Builder clear() {
           super.clear();
           if (resultsBuilder_ == null) {
             results_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        results_ = null;
             resultsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -601,7 +531,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse ot
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -616,18 +546,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.SearchAllResourcesResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1.ResourceSearchResult m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.ResourceSearchResult.parser(), extensionRegistry);
    +                if (resultsBuilder_ == null) {
    +                  ensureResultsIsMutable();
    +                  results_.add(m);
    +                } else {
    +                  resultsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.SearchAllResourcesResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1150,7 +1112,18 @@ public SearchAllResourcesResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllResourcesResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java
    index 65693385bfa3..9acb834fb75f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java
    @@ -55,81 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TableFieldSchema(
    -      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();
    -
    -              field_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              type_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              mode_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                fields_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              fields_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        fields_ = java.util.Collections.unmodifiableList(fields_);
    -      }
    -      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_TableFieldSchema_descriptor;
    @@ -426,7 +351,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < fields_.size(); i++) {
           output.writeMessage(4, fields_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -447,7 +372,7 @@ public int getSerializedSize() {
         for (int i = 0; i < fields_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -467,7 +392,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getType().equals(other.getType())) return false;
         if (!getMode().equals(other.getMode())) return false;
         if (!getFieldsList().equals(other.getFieldsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -488,7 +413,7 @@ public int hashCode() {
           hash = (37 * hash) + FIELDS_FIELD_NUMBER;
           hash = (53 * hash) + getFieldsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -617,19 +542,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.TableFieldSchema.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getFieldsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -643,10 +559,11 @@ public Builder clear() {
     
           if (fieldsBuilder_ == null) {
             fields_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        fields_ = null;
             fieldsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -775,7 +692,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableFieldSchema other) {
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -790,17 +707,62 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.TableFieldSchema parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                field_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                type_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                mode_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                com.google.cloud.asset.v1.TableFieldSchema m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry);
    +                if (fieldsBuilder_ == null) {
    +                  ensureFieldsIsMutable();
    +                  fields_.add(m);
    +                } else {
    +                  fieldsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.TableFieldSchema) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1608,7 +1570,18 @@ public TableFieldSchema parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TableFieldSchema(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    index 1a4036a858d5..3561b44fc316 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TableSchema(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                fields_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              fields_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        fields_ = java.util.Collections.unmodifiableList(fields_);
    -      }
    -      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_TableSchema_descriptor;
    @@ -207,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < fields_.size(); i++) {
           output.writeMessage(1, fields_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -219,7 +165,7 @@ public int getSerializedSize() {
         for (int i = 0; i < fields_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -235,7 +181,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.cloud.asset.v1.TableSchema other = (com.google.cloud.asset.v1.TableSchema) obj;
     
         if (!getFieldsList().equals(other.getFieldsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -250,7 +196,7 @@ public int hashCode() {
           hash = (37 * hash) + FIELDS_FIELD_NUMBER;
           hash = (53 * hash) + getFieldsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -378,19 +324,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.TableSchema.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getFieldsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -398,10 +335,11 @@ public Builder clear() {
           super.clear();
           if (fieldsBuilder_ == null) {
             fields_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        fields_ = null;
             fieldsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -515,7 +453,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableSchema other) {
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -530,17 +468,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.TableSchema parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1.TableFieldSchema m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry);
    +                if (fieldsBuilder_ == null) {
    +                  ensureFieldsIsMutable();
    +                  fields_.add(m);
    +                } else {
    +                  fieldsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.TableSchema) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -927,7 +892,18 @@ public TableSchema parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TableSchema(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java
    index 7b1a93540b65..eadbba5e6edd 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java
    @@ -53,103 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TemporalAsset(
    -      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.TimeWindow.Builder subBuilder = null;
    -              if (window_ != null) {
    -                subBuilder = window_.toBuilder();
    -              }
    -              window_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(window_);
    -                window_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 16:
    -            {
    -              deleted_ = input.readBool();
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1.Asset.Builder subBuilder = null;
    -              if (asset_ != null) {
    -                subBuilder = asset_.toBuilder();
    -              }
    -              asset_ =
    -                  input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(asset_);
    -                asset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              priorAssetState_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1.Asset.Builder subBuilder = null;
    -              if (priorAsset_ != null) {
    -                subBuilder = priorAsset_.toBuilder();
    -              }
    -              priorAsset_ =
    -                  input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(priorAsset_);
    -                priorAsset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1.AssetProto
             .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    @@ -596,7 +499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (priorAsset_ != null) {
           output.writeMessage(5, getPriorAsset());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -622,7 +525,7 @@ public int getSerializedSize() {
         if (priorAsset_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPriorAsset());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -651,7 +554,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasPriorAsset()) {
           if (!getPriorAsset().equals(other.getPriorAsset())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -678,7 +581,7 @@ public int hashCode() {
           hash = (37 * hash) + PRIOR_ASSET_FIELD_NUMBER;
           hash = (53 * hash) + getPriorAsset().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -808,17 +711,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.TemporalAsset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -954,7 +850,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TemporalAsset other) {
           if (other.hasPriorAsset()) {
             mergePriorAsset(other.getPriorAsset());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -969,17 +865,61 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.TemporalAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                deleted_ = input.readBool();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                priorAssetState_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(getPriorAssetFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.TemporalAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1719,7 +1659,18 @@ public TemporalAsset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TemporalAsset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    index c38445e5f5a7..ce73781a40ed 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    @@ -50,75 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TimeWindow(
    -      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.protobuf.Timestamp.Builder subBuilder = null;
    -              if (startTime_ != null) {
    -                subBuilder = startTime_.toBuilder();
    -              }
    -              startTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(startTime_);
    -                startTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (endTime_ != null) {
    -                subBuilder = endTime_.toBuilder();
    -              }
    -              endTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(endTime_);
    -                endTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1.AssetProto
             .internal_static_google_cloud_asset_v1_TimeWindow_descriptor;
    @@ -249,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (endTime_ != null) {
           output.writeMessage(2, getEndTime());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -264,7 +195,7 @@ public int getSerializedSize() {
         if (endTime_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -287,7 +218,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasEndTime()) {
           if (!getEndTime().equals(other.getEndTime())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -306,7 +237,7 @@ public int hashCode() {
           hash = (37 * hash) + END_TIME_FIELD_NUMBER;
           hash = (53 * hash) + getEndTime().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -434,17 +365,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.TimeWindow.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -553,7 +477,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TimeWindow other) {
           if (other.hasEndTime()) {
             mergeEndTime(other.getEndTime());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -568,17 +492,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.TimeWindow parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.TimeWindow) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -981,7 +931,18 @@ public TimeWindow parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TimeWindow(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    index 1131722a8c2f..ecd6fb6ad059 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    @@ -50,74 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateFeedRequest(
    -      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.Feed.Builder subBuilder = null;
    -              if (feed_ != null) {
    -                subBuilder = feed_.toBuilder();
    -              }
    -              feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feed_);
    -                feed_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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_UpdateFeedRequest_descriptor;
    @@ -139,8 +71,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.
    @@ -158,8 +90,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.
    @@ -177,8 +109,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.
    @@ -266,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -281,7 +213,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -305,7 +237,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -324,7 +256,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -453,17 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.UpdateFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -573,7 +498,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.UpdateFeedRequest other) {
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -588,17 +513,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.UpdateFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.UpdateFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -612,8 +563,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.
    @@ -630,8 +581,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.
    @@ -652,8 +603,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.
    @@ -678,8 +629,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.
    @@ -701,8 +652,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.
    @@ -728,8 +679,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.
    @@ -752,8 +703,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.
    @@ -770,8 +721,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.
    @@ -790,8 +741,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.
    @@ -1058,7 +1009,18 @@ public UpdateFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
    index d6cac469d586..fe7ebbc66c54 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
    +++ b/java-asset/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/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java
    index 5723995e0245..d922bb788f21 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java
    @@ -50,76 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateSavedQueryRequest(
    -      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.SavedQuery.Builder subBuilder = null;
    -              if (savedQuery_ != null) {
    -                subBuilder = savedQuery_.toBuilder();
    -              }
    -              savedQuery_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(savedQuery_);
    -                savedQuery_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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_UpdateSavedQueryRequest_descriptor;
    @@ -273,7 +203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -288,7 +218,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,7 +242,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -331,7 +261,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -460,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.UpdateSavedQueryRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -581,7 +504,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.UpdateSavedQueryRequest other
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -596,18 +519,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.UpdateSavedQueryRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getSavedQueryFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.UpdateSavedQueryRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1083,7 +1031,18 @@ public UpdateSavedQueryRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateSavedQueryRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java
    index 3e263497afd7..59377941f0b4 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private VersionedResource(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              version_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Struct.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1.AssetProto
             .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    @@ -278,7 +218,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (resource_ != null) {
           output.writeMessage(2, getResource());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +233,7 @@ public int getSerializedSize() {
         if (resource_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -314,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasResource()) {
           if (!getResource().equals(other.getResource())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -331,7 +271,7 @@ public int hashCode() {
           hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
           hash = (53 * hash) + getResource().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -461,17 +401,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1.VersionedResource.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -574,7 +507,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.VersionedResource other) {
           if (other.hasResource()) {
             mergeResource(other.getResource());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -589,17 +522,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.VersionedResource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                version_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.VersionedResource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1021,7 +980,18 @@ public VersionedResource parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new VersionedResource(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    index 1c34327291db..9e13d0662d72 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    @@ -41,20 +41,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 Protobuf 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 Protobuf 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"
    @@ -82,8 +80,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"
         };
    @@ -136,8 +133,7 @@ service AssetService {
       // 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"
         };
    @@ -148,8 +144,7 @@ service AssetService {
       // 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"
         };
    @@ -158,8 +153,7 @@ service AssetService {
     
       // Analyzes IAM policies to answer which identities have what accesses on
       // which resources.
    -  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest)
    -      returns (AnalyzeIamPolicyResponse) {
    +  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest) returns (AnalyzeIamPolicyResponse) {
         option (google.api.http) = {
           get: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicy"
         };
    @@ -169,14 +163,12 @@ service AssetService {
       // accesses on which resources, and writes the analysis results to a Google
       // Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
       // output format is the JSON format that represents a
    -  // [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
    -  // This method implements the
    -  // [google.longrunning.Operation][google.longrunning.Operation], which allows
    -  // you to track the operation status. We recommend intervals of at least 2
    -  // seconds with exponential backoff retry to poll the operation result. The
    -  // metadata contains the metadata for the long-running operation.
    -  rpc AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest)
    -      returns (google.longrunning.Operation) {
    +  // [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +  // [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +  // status. We recommend intervals of at least 2 seconds with exponential
    +  // backoff retry to poll the operation result. The metadata contains the
    +  // metadata for the long-running operation.
    +  rpc AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest) returns (google.longrunning.Operation) {
         option (google.api.http) = {
           post: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning"
           body: "*"
    @@ -237,8 +229,7 @@ service AssetService {
       }
     
       // Lists all saved queries in a parent project/folder/organization.
    -  rpc ListSavedQueries(ListSavedQueriesRequest)
    -      returns (ListSavedQueriesResponse) {
    +  rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) {
         option (google.api.http) = {
           get: "/v1/{parent=*/*}/savedQueries"
         };
    @@ -255,8 +246,7 @@ service AssetService {
       }
     
       // Deletes a saved query.
    -  rpc DeleteSavedQuery(DeleteSavedQueryRequest)
    -      returns (google.protobuf.Empty) {
    +  rpc DeleteSavedQuery(DeleteSavedQueryRequest) returns (google.protobuf.Empty) {
         option (google.api.http) = {
           delete: "/v1/{name=*/*/savedQueries/*}"
         };
    @@ -264,8 +254,7 @@ service AssetService {
       }
     
       // Gets effective IAM policies for a batch of resources.
    -  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest)
    -      returns (BatchGetEffectiveIamPoliciesResponse) {
    +  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest) returns (BatchGetEffectiveIamPoliciesResponse) {
         option (google.api.http) = {
           get: "/v1/{scope=*/*}/effectiveIamPolicies:batchGet"
         };
    @@ -276,8 +265,7 @@ service AssetService {
     // AnalyzeIamPolicyLongrunning rpc.
     message AnalyzeIamPolicyLongrunningMetadata {
       // Output only. The time the operation was created.
    -  google.protobuf.Timestamp create_time = 1
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
     }
     
     // Export asset request.
    @@ -324,8 +312,7 @@ 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];
     
       // A list of relationship types to export, for example:
    @@ -347,10 +334,8 @@ message ExportAssetsRequest {
     }
     
     // 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;
    @@ -368,11 +353,11 @@ message ExportAssetsResponse {
     
     // ListAssets request.
     message ListAssetsRequest {
    -  // Required. Name of the organization, folder, or project the assets belong
    -  // to. Format: "organizations/[organization-number]" (such as
    -  // "organizations/123"), "projects/[project-id]" (such as
    -  // "projects/my-project-id"), "projects/[project-number]" (such as
    -  // "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +  // Required. Name of the organization, folder, or project the assets belong to. Format:
    +  // "organizations/[organization-number]" (such as "organizations/123"),
    +  // "projects/[project-id]" (such as "projects/my-project-id"),
    +  // "projects/[project-number]" (such as "projects/12345"), or
    +  // "folders/[folder-number]" (such as "folders/12345").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
         (google.api.resource_reference) = {
    @@ -501,8 +486,7 @@ message BatchGetAssetsHistoryRequest {
       // See [Introduction to Cloud Asset
       // Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
       // supported asset types and relationship types.
    -  repeated string relationship_types = 5
    -      [(google.api.field_behavior) = OPTIONAL];
    +  repeated string relationship_types = 5 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // Batch get assets history response.
    @@ -524,8 +508,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];
    @@ -539,7 +524,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"
    +    }
       ];
     }
     
    @@ -558,8 +545,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.
    @@ -568,8 +555,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 {
    @@ -579,7 +565,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"
    +    }
       ];
     }
     
    @@ -804,8 +792,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
    @@ -842,9 +829,8 @@ message Feed {
     
     // 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`. The caller must be
    -  // granted the
    +  // 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
       // permission on the desired scope.
       //
    @@ -877,7 +863,11 @@ message SearchAllResourcesRequest {
       //   and its value is "prod".
       // * `labels.env:*` to find Cloud resources that have a label "env".
       // * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -  //   encryption key whose name contains the word "key".
    +  //   encryption key whose name contains "key" as a word. This field is
    +  //   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +  //   information.
    +  // * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +  //   encryption keys whose name contains the word "key".
       // * `relationships:instance-group-1` to find Cloud resources that have
       //   relationships with "instance-group-1" in the related resource name.
       // * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -906,8 +896,8 @@ message SearchAllResourcesRequest {
       //   location.
       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).
       //
       // Regular expressions are also supported. For example:
    @@ -922,22 +912,21 @@ message SearchAllResourcesRequest {
       // supported asset type, an INVALID_ARGUMENT error will be returned.
       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.
    +  // 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 singular primitive fields in the response are sortable:
       //
    @@ -947,22 +936,21 @@ message SearchAllResourcesRequest {
       //   * displayName
       //   * description
       //   * location
    -  //   * kmsKey
       //   * createTime
       //   * updateTime
       //   * state
       //   * parentFullResourceName
       //   * parentAssetType
       //
    -  // 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.
    +  // All the other fields such as repeated fields (e.g., `networkTags`,
    +  // `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +  // `additionalAttributes`) are not supported.
       string order_by = 6 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A comma-separated list of fields specifying which fields to be
    -  // returned in ResourceSearchResult. Only '*' or combination of top level
    -  // fields can be specified. Field names of both snake_case and camelCase are
    -  // supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +  // Optional. A comma-separated list of fields specifying which fields to be returned in
    +  // ResourceSearchResult. Only '*' or combination of top level fields can be
    +  // specified. Field names of both snake_case and camelCase are supported.
    +  // Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
       //
       // The read_mask paths must be valid field paths listed but not limited to
       // (both snake_case and camelCase are supported):
    @@ -978,7 +966,9 @@ message SearchAllResourcesRequest {
       //   * tagValueIds
       //   * labels
       //   * networkTags
    -  //   * kmsKey
    +  //   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +  //     retrieve KMS key information.)
    +  //   * kmsKeys
       //   * createTime
       //   * updateTime
       //   * state
    @@ -990,8 +980,7 @@ message SearchAllResourcesRequest {
       // If only '*' is specified, all fields including versionedResources will be
       // returned.
       // Any invalid field path will trigger INVALID_ARGUMENT error.
    -  google.protobuf.FieldMask read_mask = 8
    -      [(google.api.field_behavior) = OPTIONAL];
    +  google.protobuf.FieldMask read_mask = 8 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // Search all resources response.
    @@ -1008,9 +997,9 @@ 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`. The caller must
    -  // be granted the
    +  // 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`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
       // permission on the desired scope.
       //
    @@ -1066,22 +1055,20 @@ message SearchAllIamPoliciesRequest {
       //   principal type "user".
       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];
     
    -  // Optional. A list of asset types that the IAM policies are attached to. If
    -  // empty, it will search the IAM policies that are attached to all the
    -  // [searchable asset
    +  // Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +  // will search the IAM policies that are attached to all the [searchable asset
       // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
       //
       // Regular expressions are also supported. For example:
    @@ -1098,9 +1085,9 @@ message SearchAllIamPoliciesRequest {
       // supported asset type, an INVALID_ARGUMENT error will be returned.
       repeated string asset_types = 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.
    +  // 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: "assetType DESC, resource".
       // Only singular primitive fields in the response are sortable:
       //   * resource
    @@ -1173,10 +1160,9 @@ message IamPolicyAnalysisQuery {
         // Optional. If true, the identities section of the result will expand any
         // Google groups appearing in an IAM policy binding.
         //
    -    // If
    -    // [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -    // is specified, the identity in the result will be determined by the
    -    // selector, and this flag is not allowed to set.
    +    // If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +    // identity in the result will be determined by the selector, and this flag
    +    // is not allowed to set.
         //
         // If true, the default max expansion per group is 1000 for
         // AssetService.AnalyzeIamPolicy][].
    @@ -1187,31 +1173,28 @@ message IamPolicyAnalysisQuery {
         // Optional. If true, the access section of result will expand any roles
         // appearing in IAM policy bindings to include their permissions.
         //
    -    // If
    -    // [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -    // is specified, the access section of the result will be determined by the
    -    // selector, and this flag is not allowed to set.
    +    // If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +    // section of the result will be determined by the selector, and this flag
    +    // is not allowed to set.
         //
         // Default is false.
         bool expand_roles = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true and
    -    // [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -    // is not specified, the resource section of the result will expand any
    -    // resource attached to an IAM policy to include resources lower in the
    -    // resource hierarchy.
    +    // Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +    // specified, the resource section of the result will expand any resource
    +    // attached to an IAM policy to include resources lower in the resource
    +    // hierarchy.
         //
         // For example, if the request analyzes for which resources user A has
         // permission P, and the results include an IAM policy with P on a GCP
         // folder, the results will also include resources in that folder with
         // permission P.
         //
    -    // If true and
    -    // [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -    // is specified, the resource section of the result will expand the
    -    // specified resource to include resources lower in the resource hierarchy.
    -    // Only project or lower resources are supported. Folder and organization
    -    // resource cannot be used together with this option.
    +    // If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +    // the resource section of the result will expand the specified resource to
    +    // include resources lower in the resource hierarchy. Only project or
    +    // lower resources are supported. Folder and organization resource cannot be
    +    // used together with this option.
         //
         // For example, if the request analyzes for which users have permission P on
         // a GCP project with this option enabled, the results will include all
    @@ -1224,21 +1207,21 @@ message IamPolicyAnalysisQuery {
         // Default is false.
         bool expand_resources = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the result will output the relevant parent/child
    -    // relationships between resources. Default is false.
    +    // Optional. If true, the result will output the relevant parent/child relationships
    +    // between resources.
    +    // Default is false.
         bool output_resource_edges = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the result will output the relevant membership
    -    // relationships between groups and other groups, and between groups and
    -    // principals. Default is false.
    +    // Optional. If true, the result will output the relevant membership relationships
    +    // between groups and other groups, and between groups and principals.
    +    // Default is false.
         bool output_group_edges = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the response will include access analysis from
    -    // identities to resources via service account impersonation. This is a very
    -    // expensive operation, because many derived queries will be executed. We
    -    // highly recommend you use
    -    // [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -    // rpc instead.
    +    // Optional. If true, the response will include access analysis from identities to
    +    // resources via service account impersonation. This is a very expensive
    +    // operation, because many derived queries will be executed. We highly
    +    // recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +    // instead.
         //
         // For example, if the request analyzes for which resources user A has
         // permission P, and there's an IAM policy states user A has
    @@ -1266,8 +1249,7 @@ message IamPolicyAnalysisQuery {
         // * `iam.serviceAccounts.implicitDelegation`
         //
         // Default is false.
    -    bool analyze_service_account_impersonation = 6
    -        [(google.api.field_behavior) = OPTIONAL];
    +    bool analyze_service_account_impersonation = 6 [(google.api.field_behavior) = OPTIONAL];
       }
     
       // The IAM conditions context.
    @@ -1281,8 +1263,8 @@ message IamPolicyAnalysisQuery {
         }
       }
     
    -  // Required. The relative name of the root asset. Only resources and IAM
    -  // policies within the scope will be analyzed.
    +  // Required. The relative name of the root asset. Only resources and IAM policies within
    +  // the scope will be analyzed.
       //
       // This can only be an organization number (such as "organizations/123"), a
       // folder number (such as "folders/123"), a project ID (such as
    @@ -1296,12 +1278,10 @@ message IamPolicyAnalysisQuery {
       string scope = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. Specifies a resource for analysis.
    -  ResourceSelector resource_selector = 2
    -      [(google.api.field_behavior) = OPTIONAL];
    +  ResourceSelector resource_selector = 2 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. Specifies an identity for analysis.
    -  IdentitySelector identity_selector = 3
    -      [(google.api.field_behavior) = OPTIONAL];
    +  IdentitySelector identity_selector = 3 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. Specifies roles or permissions for analysis. This is optional.
       AccessSelector access_selector = 4 [(google.api.field_behavior) = OPTIONAL];
    @@ -1310,16 +1290,13 @@ message IamPolicyAnalysisQuery {
       Options options = 5 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. The hypothetical context for IAM conditions evaluation.
    -  ConditionContext condition_context = 6
    -      [(google.api.field_behavior) = OPTIONAL];
    +  ConditionContext condition_context = 6 [(google.api.field_behavior) = OPTIONAL];
     }
     
    -// A request message for
    -// [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +// A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
     message AnalyzeIamPolicyRequest {
       // Required. The request query.
    -  IamPolicyAnalysisQuery analysis_query = 1
    -      [(google.api.field_behavior) = REQUIRED];
    +  IamPolicyAnalysisQuery analysis_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. The name of a saved query, which must be in the format of:
       //
    @@ -1339,8 +1316,7 @@ message AnalyzeIamPolicyRequest {
       // presence yet.
       string saved_analysis_query = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. Amount of time executable has to complete.  See JSON
    -  // representation of
    +  // Optional. Amount of time executable has to complete.  See JSON representation of
       // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
       //
       // If this field is set with a value less than the RPC deadline, and the
    @@ -1350,26 +1326,22 @@ message AnalyzeIamPolicyRequest {
       // If it's not finished until then, you will get a  DEADLINE_EXCEEDED error.
       //
       // Default is empty.
    -  google.protobuf.Duration execution_timeout = 2
    -      [(google.api.field_behavior) = OPTIONAL];
    +  google.protobuf.Duration execution_timeout = 2 [(google.api.field_behavior) = OPTIONAL];
     }
     
    -// A response message for
    -// [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +// A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
     message AnalyzeIamPolicyResponse {
       // An analysis message to group the query and results.
       message IamPolicyAnalysis {
         // The analysis query.
         IamPolicyAnalysisQuery analysis_query = 1;
     
    -    // A list of
    -    // [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -    // that matches the analysis query, or empty if no result is found.
    +    // A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +    // empty if no result is found.
         repeated IamPolicyAnalysisResult analysis_results = 2;
     
    -    // Represents whether all entries in the
    -    // [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -    // have been fully explored to answer the query.
    +    // Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +    // fully explored to answer the query.
         bool fully_explored = 3;
     
         // A list of non-critical errors happened during the query handling.
    @@ -1384,11 +1356,9 @@ message AnalyzeIamPolicyResponse {
       // enabled.
       repeated IamPolicyAnalysis service_account_impersonation_analysis = 2;
     
    -  // Represents whether all entries in the
    -  // [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -  // and
    -  // [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -  // have been fully explored to answer the query in the request.
    +  // Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +  // [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +  // answer the query in the request.
       bool fully_explored = 3;
     }
     
    @@ -1396,8 +1366,8 @@ message AnalyzeIamPolicyResponse {
     message IamPolicyAnalysisOutputConfig {
       // A Cloud Storage location.
       message GcsDestination {
    -    // Required. The uri of the Cloud Storage object. It's the same uri that is
    -    // used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +    // Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +    // gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         // Editing Object
         // Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         // for more information.
    @@ -1425,15 +1395,13 @@ message IamPolicyAnalysisOutputConfig {
           REQUEST_TIME = 1;
         }
     
    -    // Required. The BigQuery dataset in format
    -    // "projects/projectId/datasets/datasetId", to which the analysis results
    -    // should be exported. If this dataset does not exist, the export call will
    -    // return an INVALID_ARGUMENT error.
    +    // Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +    // to which the analysis results should be exported. If this dataset does
    +    // not exist, the export call will return an INVALID_ARGUMENT error.
         string dataset = 1 [(google.api.field_behavior) = REQUIRED];
     
    -    // Required. The prefix of the BigQuery tables to which the analysis results
    -    // will be written. Tables will be created based on this table_prefix if not
    -    // exist:
    +    // Required. The prefix of the BigQuery tables to which the analysis results will be
    +    // written. Tables will be created based on this table_prefix if not exist:
         // * _analysis table will contain export operation's metadata.
         // * _analysis_result will contain all the
         //   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1444,8 +1412,8 @@ message IamPolicyAnalysisOutputConfig {
         // The partition key for BigQuery partitioned table.
         PartitionKey partition_key = 3;
     
    -    // Optional. Specifies the action that occurs if the destination table or
    -    // partition already exists. The following values are supported:
    +    // Optional. Specifies the action that occurs if the destination table or partition
    +    // already exists. The following values are supported:
         //
         // * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
         // overwrites the entire table or all the partitions data.
    @@ -1470,12 +1438,10 @@ message IamPolicyAnalysisOutputConfig {
       }
     }
     
    -// A request message for
    -// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +// A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
     message AnalyzeIamPolicyLongrunningRequest {
       // Required. The request query.
    -  IamPolicyAnalysisQuery analysis_query = 1
    -      [(google.api.field_behavior) = REQUIRED];
    +  IamPolicyAnalysisQuery analysis_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. The name of a saved query, which must be in the format of:
       //
    @@ -1495,15 +1461,14 @@ message AnalyzeIamPolicyLongrunningRequest {
       // presence yet.
       string saved_analysis_query = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Required. Output configuration indicating where the results will be output
    -  // to.
    -  IamPolicyAnalysisOutputConfig output_config = 2
    -      [(google.api.field_behavior) = REQUIRED];
    +  // Required. Output configuration indicating where the results will be output to.
    +  IamPolicyAnalysisOutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
    -// A response message for
    -// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    -message AnalyzeIamPolicyLongrunningResponse {}
    +// A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +message AnalyzeIamPolicyLongrunningResponse {
    +
    +}
     
     // A saved query which can be shared with others or used later.
     message SavedQuery {
    @@ -1518,11 +1483,8 @@ message SavedQuery {
       message QueryContent {
         oneof query_content {
           // An IAM Policy Analysis query, which could be used in
    -      // the
    -      // [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -      // rpc or the
    -      // [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -      // rpc.
    +      // the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +      // the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
           IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
         }
       }
    @@ -1539,18 +1501,15 @@ message SavedQuery {
       string description = 2;
     
       // Output only. The create time of this saved query.
    -  google.protobuf.Timestamp create_time = 3
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Output only. The account's email address who has created this saved query.
       string creator = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Output only. The last update time of this saved query.
    -  google.protobuf.Timestamp last_update_time = 5
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp last_update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
     
    -  // Output only. The account's email address who has updated this saved query
    -  // most recently.
    +  // Output only. The account's email address who has updated this saved query most recently.
       string last_updater = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Labels applied on the resource.
    @@ -1564,11 +1523,11 @@ message SavedQuery {
     
     // Request to create a saved query.
     message CreateSavedQueryRequest {
    -  // Required. The name of the project/folder/organization where this
    -  // saved_query should be created in. It can only be an organization number
    -  // (such as "organizations/123"), a folder number (such as "folders/123"), a
    -  // project ID (such as "projects/my-project-id")", or a project number (such
    -  // as "projects/12345").
    +  // Required. The name of the project/folder/organization where this saved_query
    +  // should be created in. It can only be an organization number (such as
    +  // "organizations/123"), a folder number (such as "folders/123"), a project ID
    +  // (such as "projects/my-project-id")", or a project number (such as
    +  // "projects/12345").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
         (google.api.resource_reference) = {
    @@ -1576,13 +1535,13 @@ message CreateSavedQueryRequest {
         }
       ];
     
    -  // Required. The saved_query details. The `name` field must be empty as it
    -  // will be generated based on the parent and saved_query_id.
    +  // Required. The saved_query details. The `name` field must be empty as it will be
    +  // generated based on the parent and saved_query_id.
       SavedQuery saved_query = 2 [(google.api.field_behavior) = REQUIRED];
     
    -  // Required. The ID to use for the saved query, which must be unique in the
    -  // specified parent. It will become the final component of the saved query's
    -  // resource name.
    +  // Required. The ID to use for the saved query, which must be unique in the specified
    +  // parent. It will become the final component of the saved query's resource
    +  // name.
       //
       // This value should be 4-63 characters, and valid characters
       // are /[a-z][0-9]-/.
    @@ -1609,8 +1568,8 @@ message GetSavedQueryRequest {
     
     // Request to list saved queries.
     message ListSavedQueriesRequest {
    -  // Required. The parent project/folder/organization whose savedQueries are to
    -  // be listed. It can only be using project/folder/organization number (such as
    +  // Required. The parent project/folder/organization whose savedQueries are to be
    +  // listed. It can only be using project/folder/organization number (such as
       // "folders/12345")", or a project ID (such as "projects/my-project-id").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
    @@ -1628,9 +1587,8 @@ message ListSavedQueriesRequest {
       // See https://google.aip.dev/160 for more information on the grammar.
       string filter = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. The maximum number of saved queries to return per page. The
    -  // service may return fewer than this value. If unspecified, at most 50 will
    -  // be returned.
    +  // Optional. The maximum number of saved queries to return per page. The service may
    +  // return fewer than this value. If unspecified, at most 50 will be returned.
       //  The maximum value is 1000; values above 1000 will be coerced to 1000.
       int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
     
    @@ -1665,14 +1623,12 @@ message UpdateSavedQueryRequest {
       SavedQuery saved_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Required. The list of fields to update.
    -  google.protobuf.FieldMask update_mask = 2
    -      [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
     // Request to delete a saved query.
     message DeleteSavedQueryRequest {
    -  // Required. The name of the saved query to delete. It must be in the format
    -  // of:
    +  // Required. The name of the saved query to delete. It must be in the format of:
       //
       // * projects/project_number/savedQueries/saved_query_id
       // * folders/folder_number/savedQueries/saved_query_id
    @@ -1764,13 +1720,12 @@ message MoveImpact {
     message QueryAssetsOutputConfig {
       // BigQuery destination.
       message BigQueryDestination {
    -    // Required. The BigQuery dataset where the query results will be saved. It
    -    // has the format of "projects/{projectId}/datasets/{datasetId}".
    +    // Required. The BigQuery dataset where the query results will be saved. It has the
    +    // format of "projects/{projectId}/datasets/{datasetId}".
         string dataset = 1 [(google.api.field_behavior) = REQUIRED];
     
    -    // Required. The BigQuery table where the query results will be saved. If
    -    // this table does not exist, a new table with the given name will be
    -    // created.
    +    // Required. The BigQuery table where the query results will be saved. If this table
    +    // does not exist, a new table with the given name will be created.
         string table = 2 [(google.api.field_behavior) = REQUIRED];
     
         // Specifies the action that occurs if the destination table or partition
    @@ -1780,8 +1735,10 @@ message QueryAssetsOutputConfig {
         // overwrites the entire table or all the partitions data.
         // * WRITE_APPEND: If the table or partition already exists, BigQuery
         // appends the data to the table or the latest partition.
    -    // * WRITE_EMPTY: If the table already exists and contains data, an error is
    -    // returned.
    +    // * WRITE_EMPTY: If the table already exists and contains data, a
    +    // 'duplicate' error is returned in the job result.
    +    //
    +    // The default value is WRITE_EMPTY.
         string write_disposition = 3;
       }
     
    @@ -1809,13 +1766,13 @@ message QueryAssetsRequest {
         // SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
         string statement = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. Reference to the query job, which is from the
    -    // `QueryAssetsResponse` of previous `QueryAssets` call.
    +    // Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +    // previous `QueryAssets` call.
         string job_reference = 3 [(google.api.field_behavior) = OPTIONAL];
       }
     
    -  // Optional. The maximum number of rows to return in the results. Responses
    -  // are limited to 10 MB and 1000 rows.
    +  // Optional. The maximum number of rows to return in the results. Responses are limited
    +  // to 10 MB and 1000 rows.
       //
       // By default, the maximum row count is 1000. When the byte or row count limit
       // is reached, the rest of the query results will be paginated.
    @@ -1828,11 +1785,10 @@ message QueryAssetsRequest {
       // The field will be ignored when [output_config] is specified.
       string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. Specifies the maximum amount of time that the client is willing
    -  // to wait for the query to complete. By default, this limit is 5 min for the
    -  // first query, and 1 minute for the following queries. If the query is
    -  // complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -  // false.
    +  // Optional. Specifies the maximum amount of time that the client is willing to wait
    +  // for the query to complete. By default, this limit is 5 min for the first
    +  // query, and 1 minute for the following queries. If the query is complete,
    +  // the `done` field in the `QueryAssetsResponse` is true, otherwise false.
       //
       // Like BigQuery [jobs.query
       // API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
    @@ -1851,15 +1807,13 @@ message QueryAssetsRequest {
       // If data for the timestamp/date range selected does not exist,
       // it will simply return a valid response with no rows.
       oneof time {
    -    // Optional. [start_time] is required. [start_time] must be less than
    -    // [end_time] Defaults [end_time] to now if [start_time] is set and
    -    // [end_time] isn't. Maximum permitted time range is 7 days.
    +    // Optional. [start_time] is required. [start_time] must be less than [end_time]
    +    // Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +    // Maximum permitted time range is 7 days.
         TimeWindow read_time_window = 7 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. Queries cloud assets as they appeared at the specified point in
    -    // time.
    -    google.protobuf.Timestamp read_time = 8
    -        [(google.api.field_behavior) = OPTIONAL];
    +    // Optional. Queries cloud assets as they appeared at the specified point in time.
    +    google.protobuf.Timestamp read_time = 8 [(google.api.field_behavior) = OPTIONAL];
       }
     
       // Optional. Destination where the query results will be saved.
    @@ -1871,8 +1825,7 @@ message QueryAssetsRequest {
       // Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used
       // to check the status of the query job when passed to a following
       // [QueryAssets] API call.
    -  QueryAssetsOutputConfig output_config = 9
    -      [(google.api.field_behavior) = OPTIONAL];
    +  QueryAssetsOutputConfig output_config = 9 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // QueryAssets response.
    @@ -1959,8 +1912,7 @@ message TableFieldSchema {
       repeated TableFieldSchema fields = 4;
     }
     
    -// A request message for
    -// [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +// A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
     message BatchGetEffectiveIamPoliciesRequest {
       // Required. Only IAM policies on or below the scope will be returned.
       //
    @@ -1975,7 +1927,9 @@ message BatchGetEffectiveIamPoliciesRequest {
       // ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
       string scope = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { child_type: "*" }
    +    (google.api.resource_reference) = {
    +      child_type: "*"
    +    }
       ];
     
       // Required. The names refer to the [full_resource_names]
    @@ -1985,65 +1939,53 @@ message BatchGetEffectiveIamPoliciesRequest {
       // A maximum of 20 resources' effective policies can be retrieved in a batch.
       repeated string names = 3 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { type: "*" }
    +    (google.api.resource_reference) = {
    +      type: "*"
    +    }
       ];
     }
     
    -// A response message for
    -// [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +// A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
     message BatchGetEffectiveIamPoliciesResponse {
       // The effective IAM policies on one resource.
       message EffectiveIamPolicy {
         // The IAM policy and its attached resource.
         message PolicyInfo {
    -      // The full resource name the
    -      // [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -      // is directly attached to.
    +      // The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
           string attached_resource = 1;
     
    -      // The IAM policy that's directly attached to the
    -      // [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +      // The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
           google.iam.v1.Policy policy = 2;
         }
     
         // The [full_resource_name]
         // (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -    // for which the
    -    // [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -    // are computed. This is one of the
    -    // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -    // the caller provides in the request.
    +    // for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +    // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +    // request.
         string full_resource_name = 1;
     
    -    // The effective policies for the
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +    // The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
         //
    -    // These policies include the policy set on the
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -    // and those set on its parents and ancestors up to the
    -    // [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -    // Note that these policies are not filtered according to the resource type
    -    // of the
    +    // These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +    // those set on its parents and ancestors up to the
    +    // [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +    // are not filtered according to the resource type of the
         // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
         //
         // These policies are hierarchically ordered by
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -    // starting from
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
         // itself to its parents and ancestors, such that policies[i]'s
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -    // is the child of policies[i+1]'s
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -    // if policies[i+1] exists.
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
         repeated PolicyInfo policies = 2;
       }
     
       // The effective policies for a batch of resources. Note that the results
       // order is the same as the order of
    -  // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -  // When a resource does not have any effective IAM policies, its corresponding
    -  // policy_result will contain empty
    -  // [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +  // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +  // have any effective IAM policies, its corresponding policy_result will
    +  // contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
       repeated EffectiveIamPolicy policy_results = 2;
     }
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    index 83a23693ae80..8f22b5031f4f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    @@ -16,6 +16,7 @@ syntax = "proto3";
     
     package google.cloud.asset.v1;
     
    +import "google/api/field_behavior.proto";
     import "google/api/resource.proto";
     import "google/cloud/orgpolicy/v1/orgpolicy.proto";
     import "google/cloud/osconfig/v1/inventory.proto";
    @@ -150,8 +151,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;
       }
     
       // A representation of runtime OS Inventory information. See [this
    @@ -282,8 +282,8 @@ message RelatedAsset {
       // names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       // for more information.
       string asset = 1 [(google.api.resource_reference) = {
    -    type: "cloudasset.googleapis.com/Asset"
    -  }];
    +                      type: "cloudasset.googleapis.com/Asset"
    +                    }];
     
       // The type of the asset. Example: `compute.googleapis.com/Disk`
       //
    @@ -306,7 +306,7 @@ message RelatedAsset {
     }
     
     // A result of Resource Search, containing information of a cloud resource.
    -// Next ID: 29
    +// Next ID: 31
     message ResourceSearchResult {
       // The full resource name of this resource. Example:
       // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -316,15 +316,15 @@ 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`.
       //
       // To search against the `asset_type`:
       //
    -  // * specify the `asset_type` field in your search request.
    +  // * Specify the `asset_type` field in your search request.
       string asset_type = 2;
     
       // The project that this resource belongs to, in the form of
    @@ -333,9 +333,9 @@ message ResourceSearchResult {
       //
       // To search against `project`:
       //
    -  // * use a field query. Example: `project:12345`
    -  // * use a free text query. Example: `12345`
    -  // * specify the `scope` field as this project in your search request.
    +  // * Use a field query. Example: `project:12345`
    +  // * Use a free text query. Example: `12345`
    +  // * Specify the `scope` field as this project in your search request.
       string project = 3;
     
       // The folder(s) that this resource belongs to, in the form of
    @@ -344,9 +344,9 @@ message ResourceSearchResult {
       //
       // To search against `folders`:
       //
    -  // * use a field query. Example: `folders:(123 OR 456)`
    -  // * use a free text query. Example: `123`
    -  // * specify the `scope` field as this folder in your search request.
    +  // * Use a field query. Example: `folders:(123 OR 456)`
    +  // * Use a free text query. Example: `123`
    +  // * Specify the `scope` field as this folder in your search request.
       repeated string folders = 17;
     
       // The organization that this resource belongs to, in the form of
    @@ -355,9 +355,9 @@ message ResourceSearchResult {
       //
       // To search against `organization`:
       //
    -  // * use a field query. Example: `organization:123`
    -  // * use a free text query. Example: `123`
    -  // * specify the `scope` field as this organization in your search request.
    +  // * Use a field query. Example: `organization:123`
    +  // * Use a free text query. Example: `123`
    +  // * Specify the `scope` field as this organization in your search request.
       string organization = 18;
     
       // The display name of this resource. This field is available only when the
    @@ -365,8 +365,8 @@ message ResourceSearchResult {
       //
       // To search against the `display_name`:
       //
    -  // * use a field query. Example: `displayName:"My Instance"`
    -  // * use a free text query. Example: `"My Instance"`
    +  // * Use a field query. Example: `displayName:"My Instance"`
    +  // * Use a free text query. Example: `"My Instance"`
       string display_name = 4;
     
       // One or more paragraphs of text description of this resource. Maximum length
    @@ -375,8 +375,8 @@ message ResourceSearchResult {
       //
       // To search against the `description`:
       //
    -  // * use a field query. Example: `description:"important instance"`
    -  // * use a free text query. Example: `"important instance"`
    +  // * Use a field query. Example: `description:"important instance"`
    +  // * Use a free text query. Example: `"important instance"`
       string description = 5;
     
       // Location can be `global`, regional like `us-east1`, or zonal like
    @@ -385,8 +385,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
    @@ -396,11 +396,11 @@ message ResourceSearchResult {
       //
       // To search against the `labels`:
       //
    -  // * use a field query:
    +  // * 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`
    +  // * Use a free text query. Example: `prod`
       map labels = 7;
     
       // Network tags associated with this resource. Like labels, network tags are a
    @@ -411,22 +411,41 @@ 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 Cloud KMS
       // [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
       // name or
       // [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -  // name. This field is available only when the resource's Protobuf contains
    -  // it.
    +  // name.
    +  //
    +  // This field only presents for the purpose of backward compatibility. Please
    +  // use the `kms_keys` field to retrieve KMS key information. This field is
    +  // available only when the resource's Protobuf contains it and will only be
    +  // populated for [these resource
    +  // types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +  // for backward compatible purposes.
       //
       // To search against the `kms_key`:
       //
    -  // * use a field query. Example: `kmsKey:key`
    -  // * use a free text query. Example: `key`
    -  string kms_key = 10;
    +  // * Use a field query. Example: `kmsKey:key`
    +  // * Use a free text query. Example: `key`
    +  string kms_key = 10 [deprecated = true];
    +
    +  // The Cloud KMS
    +  // [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +  // names or
    +  // [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +  // names. This field is available only when the resource's Protobuf contains
    +  // it.
    +  //
    +  // To search against the `kms_keys`:
    +  //
    +  // * Use a field query. Example: `kmsKeys:key`
    +  // * Use a free text query. Example: `key`
    +  repeated string kms_keys = 28;
     
       // The create timestamp of this resource, at which the resource was created.
       // The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -434,7 +453,7 @@ message ResourceSearchResult {
       //
       // To search against `create_time`:
       //
    -  // * use a field query.
    +  // * Use a field query.
       //     - value in seconds since unix epoch. Example: `createTime > 1609459200`
       //     - value in date string. Example: `createTime > 2021-01-01`
       //     - value in date-time string (must be quoted). Example: `createTime >
    @@ -448,7 +467,7 @@ message ResourceSearchResult {
       //
       // To search against `update_time`:
       //
    -  // * use a field query.
    +  // * Use a field query.
       //     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
       //     - value in date string. Example: `updateTime < 2021-01-01`
       //     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -473,8 +492,8 @@ message ResourceSearchResult {
       //
       // To search against the `state`:
       //
    -  // * use a field query. Example: `state:RUNNING`
    -  // * use a free text query. Example: `RUNNING`
    +  // * Use a field query. Example: `state:RUNNING`
    +  // * Use a free text query. Example: `RUNNING`
       string state = 13;
     
       // The additional searchable attributes of this resource. The attributes may
    @@ -493,7 +512,7 @@ message ResourceSearchResult {
       //
       // To search against the `additional_attributes`:
       //
    -  // * use a free text query to match the attributes values. Example: to search
    +  // * Use a free text query to match the attributes values. Example: to search
       //   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
       //   `foobar`.
       google.protobuf.Struct additional_attributes = 9;
    @@ -501,9 +520,9 @@ message ResourceSearchResult {
       // The full resource name of this resource's parent, if it has one.
       // To search against the `parent_full_resource_name`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       // `parentFullResourceName:"project-name"`
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       // `project-name`
       string parent_full_resource_name = 19;
     
    @@ -536,12 +555,12 @@ message ResourceSearchResult {
       // TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
       // To search against the `tagKeys`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagKeys:"123456789/env*"`
       //     - `tagKeys="123456789/env"`
       //     - `tagKeys:"env"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `env`
       repeated string tag_keys = 23;
     
    @@ -549,24 +568,24 @@ message ResourceSearchResult {
       // {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
       // To search against the `tagValues`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagValues:"env"`
       //     - `tagValues:"env/prod"`
       //     - `tagValues:"123456789/env/prod*"`
       //     - `tagValues="123456789/env/prod"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `prod`
       repeated string tag_values = 25;
     
       // TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
       // To search against the `tagValueIds`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagValueIds:"456"`
       //     - `tagValueIds="tagValues/456"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `456`
       repeated string tag_value_ids = 26;
     
    @@ -574,9 +593,9 @@ message ResourceSearchResult {
       //
       // To search against the `parent_asset_type`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       // `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       // `cloudresourcemanager.googleapis.com/Project`
       string parent_asset_type = 103;
     }
    @@ -857,10 +876,8 @@ message IamPolicyAnalysisResult {
         repeated Access accesses = 2;
     
         // Resource edges of the graph starting from the policy attached
    -    // resource to any descendant resources. The
    -    // [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -    // contains the full resource name of a parent resource and
    -    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +    // resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +    // the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
         // contains the full resource name of a child resource. This field is
         // present only if the output_resource_edges option is enabled in request.
         repeated Edge resource_edges = 3;
    @@ -879,41 +896,32 @@ message IamPolicyAnalysisResult {
         repeated Identity identities = 1;
     
         // Group identity edges of the graph starting from the binding's
    -    // group members to any node of the
    -    // [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -    // The
    -    // [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +    // group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
         // contains a group, such as `group:parent@google.com`. The
    -    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -    // contains a member of the group, such as `group:child@google.com` or
    -    // `user:foo@google.com`. This field is present only if the
    -    // output_group_edges option is enabled in request.
    +    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +    // such as `group:child@google.com` or `user:foo@google.com`.
    +    // This field is present only if the output_group_edges option is enabled in
    +    // request.
         repeated Edge group_edges = 2;
       }
     
       // The [full resource
       // name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -  // of the resource to which the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // policy attaches.
    +  // of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
       string attached_resource_full_name = 1;
     
       // The Cloud IAM policy binding under analysis.
       google.iam.v1.Binding iam_binding = 2;
     
    -  // The access control lists derived from the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // that match or potentially match resource and access selectors specified in
    -  // the request.
    +  // The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +  // potentially match resource and access selectors specified in the request.
       repeated AccessControlList access_control_lists = 3;
     
    -  // The identity list derived from members of the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // that match or potentially match identity selector specified in the request.
    +  // The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +  // potentially match identity selector specified in the request.
       IdentityList identity_list = 4;
     
    -  // Represents whether all analyses on the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // have successfully finished.
    +  // Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +  // finished.
       bool fully_explored = 5;
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    index 674f16a22011..42810c37d273 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    @@ -53,91 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private IamPolicySearchResult(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              resource_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              project_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (policy_ != null) {
    -                subBuilder = policy_.toBuilder();
    -              }
    -              policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(policy_);
    -                policy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
    -                  subBuilder = null;
    -              if (explanation_ != null) {
    -                subBuilder = explanation_.toBuilder();
    -              }
    -              explanation_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(explanation_);
    -                explanation_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetProto
             .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor;
    @@ -276,65 +191,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private Explanation(
    -        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:
    -              {
    -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                  matchedPermissions_ =
    -                      com.google.protobuf.MapField.newMapField(
    -                          MatchedPermissionsDefaultEntryHolder.defaultEntry);
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                com.google.protobuf.MapEntry<
    -                        java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions>
    -                    matchedPermissions__ =
    -                        input.readMessage(
    -                            MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(),
    -                            extensionRegistry);
    -                matchedPermissions_
    -                    .getMutableMap()
    -                    .put(matchedPermissions__.getKey(), matchedPermissions__.getValue());
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.cloud.asset.v1p1beta1.AssetProto
               .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor;
    @@ -513,7 +369,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
               internalGetMatchedPermissions(),
               MatchedPermissionsDefaultEntryHolder.defaultEntry,
               1);
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -533,7 +389,7 @@ public int getSerializedSize() {
                         .build();
             size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -551,7 +407,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions()))
             return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -566,7 +422,7 @@ public int hashCode() {
             hash = (37 * hash) + MATCHED_PERMISSIONS_FIELD_NUMBER;
             hash = (53 * hash) + internalGetMatchedPermissions().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -720,17 +576,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
     
           // Construct using
           // com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -825,7 +674,7 @@ public Builder mergeFrom(
                 == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation
                     .getDefaultInstance()) return this;
             internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions());
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -840,19 +689,44 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  com.google.protobuf.MapEntry<
    +                          java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions>
    +                      matchedPermissions__ =
    +                          input.readMessage(
    +                              MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                              extensionRegistry);
    +                  internalGetMutableMatchedPermissions()
    +                      .getMutableMap()
    +                      .put(matchedPermissions__.getKey(), matchedPermissions__.getValue());
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1102,7 +976,19 @@ public Explanation parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new Explanation(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -1365,7 +1251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (explanation_ != null) {
           output.writeMessage(5, getExplanation());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -1386,7 +1272,7 @@ public int getSerializedSize() {
         if (explanation_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExplanation());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -1412,7 +1298,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasExplanation()) {
           if (!getExplanation().equals(other.getExplanation())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -1435,7 +1321,7 @@ public int hashCode() {
           hash = (37 * hash) + EXPLANATION_FIELD_NUMBER;
           hash = (53 * hash) + getExplanation().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1565,17 +1451,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1700,7 +1579,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult
           if (other.hasExplanation()) {
             mergeExplanation(other.getExplanation());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1715,18 +1594,55 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                resource_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 26:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                input.readMessage(getExplanationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2411,7 +2327,18 @@ public IamPolicySearchResult parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new IamPolicySearchResult(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    index 46891f376af3..8d6661e4db3a 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Permissions(
    -      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)) {
    -                permissions_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              permissions_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        permissions_ = permissions_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetProto
             .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor;
    @@ -198,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < permissions_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -215,7 +162,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getPermissionsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -232,7 +179,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p1beta1.Permissions) obj;
     
         if (!getPermissionsList().equals(other.getPermissionsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -247,7 +194,7 @@ public int hashCode() {
           hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
           hash = (53 * hash) + getPermissionsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -376,17 +323,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.Permissions.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -486,7 +426,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.Permissions other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -501,17 +441,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.Permissions parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensurePermissionsIsMutable();
    +                permissions_.add(s);
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p1beta1.Permissions) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -717,7 +678,18 @@ public Permissions parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Permissions(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
    index 5a6167667b26..c87b27cc8ac5 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
    @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllIamPoliciesRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              scope_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              query_ = s;
    -              break;
    -            }
    -          case 24:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor;
    @@ -350,7 +285,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -371,7 +306,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -391,7 +326,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getQuery().equals(other.getQuery())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -410,7 +345,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -540,17 +475,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -662,7 +590,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -677,18 +605,55 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                scope_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                query_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 24:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            case 34:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1159,7 +1124,18 @@ public SearchAllIamPoliciesRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllIamPoliciesRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java
    index 7893f7cc7dae..90bf5add9f67 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java
    @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllIamPoliciesResponse(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                results_ =
    -                    new java.util.ArrayList<
    -                        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult>();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              results_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(),
    -                      extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        results_ = java.util.Collections.unmodifiableList(results_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor;
    @@ -280,7 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -295,7 +231,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -313,7 +249,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getResultsList().equals(other.getResultsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -330,7 +266,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -460,19 +396,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getResultsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -480,10 +407,11 @@ public Builder clear() {
           super.clear();
           if (resultsBuilder_ == null) {
             results_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        results_ = null;
             resultsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -607,7 +535,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -622,19 +550,51 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(),
    +                        extensionRegistry);
    +                if (resultsBuilder_ == null) {
    +                  ensureResultsIsMutable();
    +                  results_.add(m);
    +                } else {
    +                  resultsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse)
    -                e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1166,7 +1126,18 @@ public SearchAllIamPoliciesResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllIamPoliciesResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
    index c872d832f313..190b04f38a46 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
    @@ -56,92 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllResourcesRequest(
    -      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();
    -
    -              scope_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              query_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              orderBy_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor;
    @@ -493,7 +407,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 10, orderBy_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -525,7 +439,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, orderBy_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -547,7 +461,7 @@ public boolean equals(final java.lang.Object obj) {
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
         if (!getOrderBy().equals(other.getOrderBy())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -572,7 +486,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageToken().hashCode();
         hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
         hash = (53 * hash) + getOrderBy().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -702,17 +616,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -847,7 +754,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequ
             orderBy_ = other.orderBy_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -862,18 +769,68 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                scope_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                query_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 82:
    +              {
    +                orderBy_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 82
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1628,7 +1585,18 @@ public SearchAllResourcesRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllResourcesRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java
    index 4e85d55013d4..fb5e99395fa4 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java
    @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SearchAllResourcesResponse(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                results_ =
    -                    new java.util.ArrayList<
    -                        com.google.cloud.asset.v1p1beta1.StandardResourceMetadata>();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              results_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(),
    -                      extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        results_ = java.util.Collections.unmodifiableList(results_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor;
    @@ -277,7 +213,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -292,7 +228,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -310,7 +246,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getResultsList().equals(other.getResultsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -327,7 +263,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -457,19 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getResultsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -477,10 +404,11 @@ public Builder clear() {
           super.clear();
           if (resultsBuilder_ == null) {
             results_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        results_ = null;
             resultsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -602,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResp
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -617,18 +545,51 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1p1beta1.StandardResourceMetadata m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(),
    +                        extensionRegistry);
    +                if (resultsBuilder_ == null) {
    +                  ensureResultsIsMutable();
    +                  results_.add(m);
    +                } else {
    +                  resultsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1147,7 +1108,18 @@ public SearchAllResourcesResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SearchAllResourcesResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
    index 670f1807775d..c0e711d3c87f 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
    @@ -59,127 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private StandardResourceMetadata(
    -      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();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              project_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              displayName_ = s;
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              description_ = s;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                additionalAttributes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              additionalAttributes_.add(s);
    -              break;
    -            }
    -          case 90:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              location_ = s;
    -              break;
    -            }
    -          case 98:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                labels_ =
    -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              com.google.protobuf.MapEntry labels__ =
    -                  input.readMessage(
    -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    -              break;
    -            }
    -          case 106:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
    -                networkTags_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000004;
    -              }
    -              networkTags_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        additionalAttributes_ = additionalAttributes_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000004) != 0)) {
    -        networkTags_ = networkTags_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p1beta1.AssetProto
             .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor;
    @@ -805,7 +684,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < networkTags_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 13, networkTags_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -858,7 +737,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getNetworkTagsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -883,7 +762,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getLocation().equals(other.getLocation())) return false;
         if (!internalGetLabels().equals(other.internalGetLabels())) return false;
         if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -918,7 +797,7 @@ public int hashCode() {
           hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER;
           hash = (53 * hash) + getNetworkTagsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1068,17 +947,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1242,7 +1114,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetada
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1257,18 +1129,92 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                displayName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                description_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAdditionalAttributesIsMutable();
    +                additionalAttributes_.add(s);
    +                break;
    +              } // case 82
    +            case 90:
    +              {
    +                location_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 90
    +            case 98:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 98
    +            case 106:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureNetworkTagsIsMutable();
    +                networkTags_.add(s);
    +                break;
    +              } // case 106
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2535,7 +2481,18 @@ public StandardResourceMetadata parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new StandardResourceMetadata(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java
    index 704e28ff5dd7..f49ec70683b0 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java
    @@ -55,103 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Asset(
    -      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();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p2beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetProto
             .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    @@ -476,7 +379,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < ancestors_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ancestors_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -505,7 +408,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAncestorsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -531,7 +434,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getIamPolicy().equals(other.getIamPolicy())) return false;
         }
         if (!getAncestorsList().equals(other.getAncestorsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -558,7 +461,7 @@ public int hashCode() {
           hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
           hash = (53 * hash) + getAncestorsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -688,17 +591,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Asset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -840,7 +736,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Asset other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -855,17 +751,62 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1712,7 +1653,18 @@ public Asset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Asset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java
    index bac9e67c19cf..dbe32425d483 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java
    @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private CreateFeedRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              feedId_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p2beta1.Feed.Builder subBuilder = null;
    -              if (feed_ != null) {
    -                subBuilder = feed_.toBuilder();
    -              }
    -              feed_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feed_);
    -                feed_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor;
    @@ -329,7 +260,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (feed_ != null) {
           output.writeMessage(3, getFeed());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -347,7 +278,7 @@ public int getSerializedSize() {
         if (feed_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -369,7 +300,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasFeed()) {
           if (!getFeed().equals(other.getFeed())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -388,7 +319,7 @@ public int hashCode() {
           hash = (37 * hash) + FEED_FIELD_NUMBER;
           hash = (53 * hash) + getFeed().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -517,17 +448,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.CreateFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -638,7 +562,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.CreateFeedRequest othe
           if (other.hasFeed()) {
             mergeFeed(other.getFeed());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -653,18 +577,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.CreateFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                feedId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1163,7 +1118,18 @@ public CreateFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new CreateFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java
    index efbf7b40de63..6fedeb0980a2 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java
    @@ -44,52 +44,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteFeedRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor;
    @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -193,7 +147,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) obj;
     
         if (!getName().equals(other.getName())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -223,7 +177,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + NAME_FIELD_NUMBER;
         hash = (53 * hash) + getName().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -344,17 +298,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -444,7 +391,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest othe
             name_ = other.name_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -459,18 +406,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -637,7 +603,18 @@ public DeleteFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java
    index 44085428ca11..dc4c7d01aa2f 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java
    @@ -59,103 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Feed(
    -      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();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetNames_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetNames_.add(s);
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder subBuilder = null;
    -              if (feedOutputConfig_ != null) {
    -                subBuilder = feedOutputConfig_.toBuilder();
    -              }
    -              feedOutputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.FeedOutputConfig.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feedOutputConfig_);
    -                feedOutputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetNames_ = assetNames_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    @@ -529,7 +432,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (feedOutputConfig_ != null) {
           output.writeMessage(5, getFeedOutputConfig());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -564,7 +467,7 @@ public int getSerializedSize() {
         if (feedOutputConfig_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -587,7 +490,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasFeedOutputConfig()) {
           if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -614,7 +517,7 @@ public int hashCode() {
           hash = (37 * hash) + FEED_OUTPUT_CONFIG_FIELD_NUMBER;
           hash = (53 * hash) + getFeedOutputConfig().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -746,17 +649,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Feed.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -900,7 +796,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Feed other) {
           if (other.hasFeedOutputConfig()) {
             mergeFeedOutputConfig(other.getFeedOutputConfig());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -915,17 +811,64 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.Feed parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetNamesIsMutable();
    +                assetNames_.add(s);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                contentType_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(
    +                    getFeedOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.Feed) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1857,7 +1800,18 @@ public Feed parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Feed(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java
    index ee1dfa076667..2ff65d94bfad 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java
    @@ -50,64 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private FeedOutputConfig(
    -      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.v1p2beta1.PubsubDestination.Builder subBuilder = null;
    -              if (destinationCase_ == 1) {
    -                subBuilder =
    -                    ((com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_).toBuilder();
    -              }
    -              destination_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.PubsubDestination.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_);
    -                destination_ = subBuilder.buildPartial();
    -              }
    -              destinationCase_ = 1;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor;
    @@ -236,7 +178,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -250,7 +192,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -274,7 +216,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -293,7 +235,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -422,22 +364,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         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();
    +      if (pubsubDestinationBuilder_ != null) {
    +        pubsubDestinationBuilder_.clear();
    +      }
           destinationCase_ = 0;
           destination_ = null;
           return this;
    @@ -536,7 +474,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.FeedOutputConfig other
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -551,18 +489,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.FeedOutputConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(
    +                    getPubsubDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 1;
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -826,7 +784,18 @@ public FeedOutputConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new FeedOutputConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java
    index 614e991885a8..2dfab0e23344 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java
    @@ -50,52 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GcsDestination(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              objectUriCase_ = 1;
    -              objectUri_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor;
    @@ -254,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (objectUriCase_ == 1) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -266,7 +220,7 @@ public int getSerializedSize() {
         if (objectUriCase_ == 1) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, objectUri_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -290,7 +244,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -309,7 +263,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -438,17 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -550,7 +497,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GcsDestination other)
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -565,17 +512,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.GcsDestination parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                objectUriCase_ = 1;
    +                objectUri_ = s;
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.GcsDestination) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -783,7 +751,18 @@ public GcsDestination parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GcsDestination(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java
    index 3540a81af03b..bce71c0134a3 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GetFeedRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor;
    @@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -201,7 +155,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p2beta1.GetFeedRequest) obj;
     
         if (!getName().equals(other.getName())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -231,7 +185,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + NAME_FIELD_NUMBER;
         hash = (53 * hash) + getName().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -360,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.GetFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -460,7 +407,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GetFeedRequest other)
             name_ = other.name_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -475,17 +422,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.GetFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.GetFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -652,7 +619,18 @@ public GetFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GetFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java
    index 3c4df6dd0ba7..cdcf0600a2fb 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListFeedsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor;
    @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -195,7 +149,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) obj;
     
         if (!getParent().equals(other.getParent())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -225,7 +179,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + PARENT_FIELD_NUMBER;
         hash = (53 * hash) + getParent().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsRequest other
             parent_ = other.parent_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -469,18 +416,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.ListFeedsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -632,7 +598,18 @@ public ListFeedsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListFeedsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java
    index 84c147ebf8bf..c816df0748f5 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java
    @@ -44,60 +44,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListFeedsResponse(
    -      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:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                feeds_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              feeds_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        feeds_ = java.util.Collections.unmodifiableList(feeds_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor;
    @@ -199,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < feeds_.size(); i++) {
           output.writeMessage(1, feeds_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -211,7 +157,7 @@ public int getSerializedSize() {
         for (int i = 0; i < feeds_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -228,7 +174,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) obj;
     
         if (!getFeedsList().equals(other.getFeedsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -243,7 +189,7 @@ public int hashCode() {
           hash = (37 * hash) + FEEDS_FIELD_NUMBER;
           hash = (53 * hash) + getFeedsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -364,19 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getFeedsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -384,10 +321,11 @@ public Builder clear() {
           super.clear();
           if (feedsBuilder_ == null) {
             feeds_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        feeds_ = null;
             feedsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -502,7 +440,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsResponse othe
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -517,18 +455,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.ListFeedsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.cloud.asset.v1p2beta1.Feed m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry);
    +                if (feedsBuilder_ == null) {
    +                  ensureFeedsIsMutable();
    +                  feeds_.add(m);
    +                } else {
    +                  feedsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -914,7 +878,18 @@ public ListFeedsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListFeedsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java
    index f2ed4e0bb723..dea0826795c5 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java
    @@ -50,63 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private OutputConfig(
    -      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.v1p2beta1.GcsDestination.Builder subBuilder = null;
    -              if (destinationCase_ == 1) {
    -                subBuilder =
    -                    ((com.google.cloud.asset.v1p2beta1.GcsDestination) destination_).toBuilder();
    -              }
    -              destination_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.GcsDestination.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_);
    -                destination_ = subBuilder.buildPartial();
    -              }
    -              destinationCase_ = 1;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor;
    @@ -234,7 +177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -248,7 +191,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -272,7 +215,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -291,7 +234,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -420,22 +363,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.OutputConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         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();
    +      if (gcsDestinationBuilder_ != null) {
    +        gcsDestinationBuilder_.clear();
    +      }
           destinationCase_ = 0;
           destination_ = null;
           return this;
    @@ -533,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.OutputConfig other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -548,17 +487,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.OutputConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 1;
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.OutputConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -819,7 +778,18 @@ public OutputConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new OutputConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java
    index 5f5caea81ff1..8481f47acc47 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PubsubDestination(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor;
    @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -193,7 +147,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p2beta1.PubsubDestination) obj;
     
         if (!getTopic().equals(other.getTopic())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -223,7 +177,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + TOPIC_FIELD_NUMBER;
         hash = (53 * hash) + getTopic().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.PubsubDestination othe
             topic_ = other.topic_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -467,18 +414,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.PubsubDestination parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.PubsubDestination) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -625,7 +591,18 @@ public PubsubDestination parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PubsubDestination(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java
    index 8de2f53df62a..b2091f4fbaf6 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java
    @@ -56,94 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Resource(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              version_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryDocumentUri_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryName_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              resourceUrl_ = s;
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.protobuf.Struct.Builder subBuilder = null;
    -              if (data_ != null) {
    -                subBuilder = data_.toBuilder();
    -              }
    -              data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(data_);
    -                data_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetProto
             .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor;
    @@ -521,7 +433,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (data_ != null) {
           output.writeMessage(6, getData());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -548,7 +460,7 @@ public int getSerializedSize() {
         if (data_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -573,7 +485,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasData()) {
           if (!getData().equals(other.getData())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -598,7 +510,7 @@ public int hashCode() {
           hash = (37 * hash) + DATA_FIELD_NUMBER;
           hash = (53 * hash) + getData().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -727,17 +639,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Resource.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -868,7 +773,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Resource other) {
           if (other.hasData()) {
             mergeData(other.getData());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -883,17 +788,67 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.Resource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                version_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                discoveryDocumentUri_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                discoveryName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                resourceUrl_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.Resource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1735,7 +1690,18 @@ public Resource parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Resource(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    index 10b8a416d0da..9851bfadfe78 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    @@ -51,82 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TemporalAsset(
    -      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.v1p2beta1.TimeWindow.Builder subBuilder = null;
    -              if (window_ != null) {
    -                subBuilder = window_.toBuilder();
    -              }
    -              window_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.TimeWindow.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(window_);
    -                window_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 16:
    -            {
    -              deleted_ = input.readBool();
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p2beta1.Asset.Builder subBuilder = null;
    -              if (asset_ != null) {
    -                subBuilder = asset_.toBuilder();
    -              }
    -              asset_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(asset_);
    -                asset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetProto
             .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    @@ -277,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (asset_ != null) {
           output.writeMessage(3, getAsset());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -295,7 +219,7 @@ public int getSerializedSize() {
         if (asset_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -320,7 +244,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasAsset()) {
           if (!getAsset().equals(other.getAsset())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -341,7 +265,7 @@ public int hashCode() {
           hash = (37 * hash) + ASSET_FIELD_NUMBER;
           hash = (53 * hash) + getAsset().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -471,17 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.TemporalAsset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -597,7 +514,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.TemporalAsset other) {
           if (other.hasAsset()) {
             mergeAsset(other.getAsset());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -612,17 +529,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.TemporalAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                deleted_ = input.readBool();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.TemporalAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1080,7 +1029,18 @@ public TemporalAsset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TemporalAsset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java
    index af7ed1677e85..a169a8f496ee 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java
    @@ -50,75 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private TimeWindow(
    -      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.protobuf.Timestamp.Builder subBuilder = null;
    -              if (startTime_ != null) {
    -                subBuilder = startTime_.toBuilder();
    -              }
    -              startTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(startTime_);
    -                startTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (endTime_ != null) {
    -                subBuilder = endTime_.toBuilder();
    -              }
    -              endTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(endTime_);
    -                endTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetProto
             .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor;
    @@ -249,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (endTime_ != null) {
           output.writeMessage(2, getEndTime());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -264,7 +195,7 @@ public int getSerializedSize() {
         if (endTime_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -288,7 +219,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasEndTime()) {
           if (!getEndTime().equals(other.getEndTime())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -307,7 +238,7 @@ public int hashCode() {
           hash = (37 * hash) + END_TIME_FIELD_NUMBER;
           hash = (53 * hash) + getEndTime().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -436,17 +367,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -556,7 +480,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.TimeWindow other) {
           if (other.hasEndTime()) {
             mergeEndTime(other.getEndTime());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -571,17 +495,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.TimeWindow parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.TimeWindow) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -984,7 +934,18 @@ public TimeWindow parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TimeWindow(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    index 040fd53d6b2b..698bef635eb2 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    @@ -50,76 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateFeedRequest(
    -      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.v1p2beta1.Feed.Builder subBuilder = null;
    -              if (feed_ != null) {
    -                subBuilder = feed_.toBuilder();
    -              }
    -              feed_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feed_);
    -                feed_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p2beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor;
    @@ -271,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -286,7 +216,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -310,7 +240,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -329,7 +259,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -458,17 +388,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -579,7 +502,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest othe
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -594,18 +517,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1077,7 +1025,18 @@ public UpdateFeedRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateFeedRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java
    index 47f349745998..2e171f14a70f 100644
    --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java
    @@ -56,182 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Asset(
    -      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();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p5beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p5beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                orgPolicy_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              orgPolicy_.add(
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 58:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 7) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 8) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessLevel.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            }
    -          case 74:
    -            {
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder =
    -                  null;
    -              if (accessContextPolicyCase_ == 9) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_);
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p5beta1.AssetProto
             .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    @@ -798,7 +622,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < ancestors_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -846,7 +670,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAncestorsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -887,7 +711,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -934,7 +758,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1064,19 +888,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.Asset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getOrgPolicyFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -1100,10 +915,20 @@ public Builder clear() {
           }
           if (orgPolicyBuilder_ == null) {
             orgPolicy_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        orgPolicy_ = null;
             orgPolicyBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      if (accessPolicyBuilder_ != null) {
    +        accessPolicyBuilder_.clear();
    +      }
    +      if (accessLevelBuilder_ != null) {
    +        accessLevelBuilder_.clear();
    +      }
    +      if (servicePerimeterBuilder_ != null) {
    +        servicePerimeterBuilder_.clear();
    +      }
           ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           bitField0_ = (bitField0_ & ~0x00000002);
           accessContextPolicyCase_ = 0;
    @@ -1305,7 +1130,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Asset other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1320,17 +1145,94 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p5beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                com.google.cloud.orgpolicy.v1.Policy m =
    +                    input.readMessage(
    +                        com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry);
    +                if (orgPolicyBuilder_ == null) {
    +                  ensureOrgPolicyIsMutable();
    +                  orgPolicy_.add(m);
    +                } else {
    +                  orgPolicyBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 7;
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 8;
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 9;
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 82
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p5beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -3035,7 +2937,18 @@ public Asset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Asset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java
    index ae570bd57094..614da13abd8a 100644
    --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java
    @@ -55,100 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListAssetsRequest(
    -      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();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 40:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p5beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor;
    @@ -497,7 +403,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -530,7 +436,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -555,7 +461,7 @@ public boolean equals(final java.lang.Object obj) {
         if (contentType_ != other.contentType_) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -582,7 +488,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -711,17 +617,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -862,7 +761,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsRequest othe
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -877,18 +776,68 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p5beta1.ListAssetsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                contentType_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 40:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 40
    +            case 50:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1733,7 +1682,18 @@ public ListAssetsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListAssetsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java
    index c7122683d2ea..986a57608398 100644
    --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java
    @@ -53,82 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListAssetsResponse(
    -      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:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assets_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assets_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p5beta1.Asset.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assets_ = java.util.Collections.unmodifiableList(assets_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p5beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor;
    @@ -333,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -351,7 +275,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -373,7 +297,7 @@ public boolean equals(final java.lang.Object obj) {
         }
         if (!getAssetsList().equals(other.getAssetsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -394,7 +318,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -523,19 +447,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getAssetsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -549,10 +464,11 @@ public Builder clear() {
           }
           if (assetsBuilder_ == null) {
             assets_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        assets_ = null;
             assetsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -682,7 +598,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse oth
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -697,18 +613,56 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p5beta1.ListAssetsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.cloud.asset.v1p5beta1.Asset m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1p5beta1.Asset.parser(), extensionRegistry);
    +                if (assetsBuilder_ == null) {
    +                  ensureAssetsIsMutable();
    +                  assets_.add(m);
    +                } else {
    +                  assetsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1384,7 +1338,18 @@ public ListAssetsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListAssetsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java
    index f77c0ca6ae61..4fa82289ca27 100644
    --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java
    +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java
    @@ -56,94 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Resource(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              version_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryDocumentUri_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryName_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              resourceUrl_ = s;
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.protobuf.Struct.Builder subBuilder = null;
    -              if (data_ != null) {
    -                subBuilder = data_.toBuilder();
    -              }
    -              data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(data_);
    -                data_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p5beta1.AssetProto
             .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor;
    @@ -521,7 +433,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (data_ != null) {
           output.writeMessage(6, getData());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -548,7 +460,7 @@ public int getSerializedSize() {
         if (data_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -573,7 +485,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasData()) {
           if (!getData().equals(other.getData())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -598,7 +510,7 @@ public int hashCode() {
           hash = (37 * hash) + DATA_FIELD_NUMBER;
           hash = (53 * hash) + getData().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -727,17 +639,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.Resource.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -868,7 +773,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Resource other) {
           if (other.hasData()) {
             mergeData(other.getData());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -883,17 +788,67 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p5beta1.Resource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                version_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                discoveryDocumentUri_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                discoveryName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                resourceUrl_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p5beta1.Resource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1735,7 +1690,18 @@ public Resource parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Resource(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    index 522926d21a18..61ba975a61bb 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    @@ -62,213 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Asset(
    -      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();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p7beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                orgPolicy_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              orgPolicy_.add(
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 58:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 7) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 8) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessLevel.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            }
    -          case 74:
    -            {
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder =
    -                  null;
    -              if (accessContextPolicyCase_ == 9) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          case 90:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (updateTime_ != null) {
    -                subBuilder = updateTime_.toBuilder();
    -              }
    -              updateTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateTime_);
    -                updateTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 106:
    -            {
    -              com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder subBuilder = null;
    -              if (relatedAssets_ != null) {
    -                subBuilder = relatedAssets_.toBuilder();
    -              }
    -              relatedAssets_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.RelatedAssets.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relatedAssets_);
    -                relatedAssets_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_);
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetProto
             .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    @@ -1048,7 +841,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (relatedAssets_ != null) {
           output.writeMessage(13, getRelatedAssets());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -1102,7 +895,7 @@ public int getSerializedSize() {
         if (relatedAssets_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelatedAssets());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -1151,7 +944,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -1206,7 +999,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1342,19 +1135,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.Asset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getOrgPolicyFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -1384,10 +1168,20 @@ public Builder clear() {
           }
           if (orgPolicyBuilder_ == null) {
             orgPolicy_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        orgPolicy_ = null;
             orgPolicyBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      if (accessPolicyBuilder_ != null) {
    +        accessPolicyBuilder_.clear();
    +      }
    +      if (accessLevelBuilder_ != null) {
    +        accessLevelBuilder_.clear();
    +      }
    +      if (servicePerimeterBuilder_ != null) {
    +        servicePerimeterBuilder_.clear();
    +      }
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = null;
           } else {
    @@ -1611,7 +1405,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Asset other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1626,17 +1420,106 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                com.google.cloud.orgpolicy.v1.Policy m =
    +                    input.readMessage(
    +                        com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry);
    +                if (orgPolicyBuilder_ == null) {
    +                  ensureOrgPolicyIsMutable();
    +                  orgPolicy_.add(m);
    +                } else {
    +                  orgPolicyBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 7;
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 8;
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 9;
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 82
    +            case 90:
    +              {
    +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 90
    +            case 106:
    +              {
    +                input.readMessage(getRelatedAssetsFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 106
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -4059,7 +3942,18 @@ public Asset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Asset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java
    index e9f66396e4c3..e4e0cb57d661 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java
    @@ -53,85 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private BigQueryDestination(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              dataset_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              table_ = s;
    -              break;
    -            }
    -          case 24:
    -            {
    -              force_ = input.readBool();
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder subBuilder = null;
    -              if (partitionSpec_ != null) {
    -                subBuilder = partitionSpec_.toBuilder();
    -              }
    -              partitionSpec_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.PartitionSpec.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(partitionSpec_);
    -                partitionSpec_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 40:
    -            {
    -              separateTablesPerAssetType_ = input.readBool();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor;
    @@ -436,7 +357,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (separateTablesPerAssetType_ != false) {
           output.writeBool(5, separateTablesPerAssetType_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -460,7 +381,7 @@ public int getSerializedSize() {
         if (separateTablesPerAssetType_ != false) {
           size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -484,7 +405,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getPartitionSpec().equals(other.getPartitionSpec())) return false;
         }
         if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -507,7 +428,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER;
         hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType());
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -636,17 +557,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -769,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.BigQueryDestination ot
           if (other.getSeparateTablesPerAssetType() != false) {
             setSeparateTablesPerAssetType(other.getSeparateTablesPerAssetType());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -784,18 +698,61 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.BigQueryDestination parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                dataset_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                table_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 24:
    +              {
    +                force_ = input.readBool();
    +
    +                break;
    +              } // case 24
    +            case 34:
    +              {
    +                input.readMessage(getPartitionSpecFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 40:
    +              {
    +                separateTablesPerAssetType_ = input.readBool();
    +
    +                break;
    +              } // case 40
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.BigQueryDestination) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1562,7 +1519,18 @@ public BigQueryDestination parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new BigQueryDestination(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java
    index 9ef4c9d0ce68..3ad35b195227 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java
    @@ -55,117 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ExportAssetsRequest(
    -      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();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1p7beta1.OutputConfig.Builder subBuilder = null;
    -              if (outputConfig_ != null) {
    -                subBuilder = outputConfig_.toBuilder();
    -              }
    -              outputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.OutputConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputConfig_);
    -                outputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                relationshipTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              relationshipTypes_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        relationshipTypes_ = relationshipTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor;
    @@ -636,7 +525,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < relationshipTypes_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relationshipTypes_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -674,7 +563,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getRelationshipTypesList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -702,7 +591,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getOutputConfig().equals(other.getOutputConfig())) return false;
         }
         if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -733,7 +622,7 @@ public int hashCode() {
           hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER;
           hash = (53 * hash) + getRelationshipTypesList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -862,17 +751,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1031,7 +913,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest ot
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1046,18 +928,69 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                contentType_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureRelationshipTypesIsMutable();
    +                relationshipTypes_.add(s);
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2284,7 +2217,18 @@ public ExportAssetsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ExportAssetsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java
    index bcfa574a7965..b7d844e3802f 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java
    @@ -54,92 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ExportAssetsResponse(
    -      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.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.cloud.asset.v1p7beta1.OutputConfig.Builder subBuilder = null;
    -              if (outputConfig_ != null) {
    -                subBuilder = outputConfig_.toBuilder();
    -              }
    -              outputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.OutputConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputConfig_);
    -                outputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p7beta1.OutputResult.Builder subBuilder = null;
    -              if (outputResult_ != null) {
    -                subBuilder = outputResult_.toBuilder();
    -              }
    -              outputResult_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.OutputResult.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputResult_);
    -                outputResult_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    @@ -332,7 +246,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (outputResult_ != null) {
           output.writeMessage(3, getOutputResult());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -350,7 +264,7 @@ public int getSerializedSize() {
         if (outputResult_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -378,7 +292,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasOutputResult()) {
           if (!getOutputResult().equals(other.getOutputResult())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -401,7 +315,7 @@ public int hashCode() {
           hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER;
           hash = (53 * hash) + getOutputResult().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -535,17 +449,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -670,7 +577,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse o
           if (other.hasOutputResult()) {
             mergeOutputResult(other.getOutputResult());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -685,18 +592,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getOutputResultFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1319,7 +1257,18 @@ public ExportAssetsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ExportAssetsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    index a388e716f715..90bf2d64b525 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    @@ -50,59 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GcsDestination(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              objectUriCase_ = 1;
    -              objectUri_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              objectUriCase_ = 2;
    -              objectUri_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor;
    @@ -361,7 +308,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (objectUriCase_ == 2) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectUri_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -376,7 +323,7 @@ public int getSerializedSize() {
         if (objectUriCase_ == 2) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectUri_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -403,7 +350,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -426,7 +373,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -555,17 +502,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -677,7 +617,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsDestination other)
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -692,17 +632,45 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.GcsDestination parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                objectUriCase_ = 1;
    +                objectUri_ = s;
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                objectUriCase_ = 2;
    +                objectUri_ = s;
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.GcsDestination) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1092,7 +1060,18 @@ public GcsDestination parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GcsDestination(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java
    index 9e5a05ad2a13..468dcb870522 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java
    @@ -52,59 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      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.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor;
    @@ -202,7 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < uris_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -219,7 +166,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getUrisList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -236,7 +183,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p7beta1.GcsOutputResult) obj;
     
         if (!getUrisList().equals(other.getUrisList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -251,7 +198,7 @@ public int hashCode() {
           hash = (37 * hash) + URIS_FIELD_NUMBER;
           hash = (53 * hash) + getUrisList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -380,17 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -491,7 +431,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsOutputResult other)
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -506,17 +446,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.GcsOutputResult parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureUrisIsMutable();
    +                uris_.add(s);
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.GcsOutputResult) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -731,7 +692,18 @@ public GcsOutputResult parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GcsOutputResult(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java
    index 7caec96d9a6f..a15a6ffbc992 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java
    @@ -50,83 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private OutputConfig(
    -      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.v1p7beta1.GcsDestination.Builder subBuilder = null;
    -              if (destinationCase_ == 1) {
    -                subBuilder =
    -                    ((com.google.cloud.asset.v1p7beta1.GcsDestination) destination_).toBuilder();
    -              }
    -              destination_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.GcsDestination.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
    -                destination_ = subBuilder.buildPartial();
    -              }
    -              destinationCase_ = 1;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder subBuilder = null;
    -              if (destinationCase_ == 2) {
    -                subBuilder =
    -                    ((com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
    -                        .toBuilder();
    -              }
    -              destination_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.BigQueryDestination.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
    -                destination_ = subBuilder.buildPartial();
    -              }
    -              destinationCase_ = 2;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor;
    @@ -315,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (destinationCase_ == 2) {
           output.writeMessage(2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -334,7 +257,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -361,7 +284,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -384,7 +307,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -513,22 +436,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         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();
    +      if (gcsDestinationBuilder_ != null) {
    +        gcsDestinationBuilder_.clear();
    +      }
    +      if (bigqueryDestinationBuilder_ != null) {
    +        bigqueryDestinationBuilder_.clear();
    +      }
           destinationCase_ = 0;
           destination_ = null;
           return this;
    @@ -638,7 +560,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputConfig other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -653,17 +575,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.OutputConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 1;
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(
    +                    getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry);
    +                destinationCase_ = 2;
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.OutputConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1148,7 +1097,18 @@ public OutputConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new OutputConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    index cc21d39b3317..16fdc48ab8cd 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    @@ -50,62 +50,6 @@ 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.v1p7beta1.GcsOutputResult.Builder subBuilder = null;
    -              if (resultCase_ == 1) {
    -                subBuilder =
    -                    ((com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_).toBuilder();
    -              }
    -              result_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.GcsOutputResult.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom((com.google.cloud.asset.v1p7beta1.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 (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor;
    @@ -233,7 +177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (resultCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -247,7 +191,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -271,7 +215,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -290,7 +234,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -419,22 +363,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         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();
    +      if (gcsResultBuilder_ != null) {
    +        gcsResultBuilder_.clear();
    +      }
           resultCase_ = 0;
           result_ = null;
           return this;
    @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputResult other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -547,17 +487,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.OutputResult parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getGcsResultFieldBuilder().getBuilder(), extensionRegistry);
    +                resultCase_ = 1;
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.OutputResult) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -817,7 +777,18 @@ public OutputResult parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new OutputResult(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java
    index d1af80305d12..1e0d5eb26295 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PartitionSpec(
    -      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 8:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              partitionKey_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetServiceProto
             .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor;
    @@ -345,7 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
                 .getNumber()) {
           output.writeEnum(1, partitionKey_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -359,7 +313,7 @@ public int getSerializedSize() {
                 .getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -376,7 +330,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.cloud.asset.v1p7beta1.PartitionSpec) obj;
     
         if (partitionKey_ != other.partitionKey_) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -389,7 +343,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER;
         hash = (53 * hash) + partitionKey_;
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -518,17 +472,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -616,7 +563,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.PartitionSpec other) {
           if (other.partitionKey_ != 0) {
             setPartitionKeyValue(other.getPartitionKeyValue());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -631,17 +578,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.PartitionSpec parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 8:
    +              {
    +                partitionKey_ = input.readEnum();
    +
    +                break;
    +              } // case 8
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.PartitionSpec) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -771,7 +738,18 @@ public PartitionSpec parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PartitionSpec(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java
    index a1c69ec63a77..b7cd47f20032 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java
    @@ -61,73 +61,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private RelatedAsset(
    -      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();
    -
    -              asset_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetProto
             .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    @@ -355,7 +288,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < ancestors_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestors_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -378,7 +311,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAncestorsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -397,7 +330,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getAsset().equals(other.getAsset())) return false;
         if (!getAssetType().equals(other.getAssetType())) return false;
         if (!getAncestorsList().equals(other.getAncestorsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -416,7 +349,7 @@ public int hashCode() {
           hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
           hash = (53 * hash) + getAncestorsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -552,17 +485,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelatedAsset.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -676,7 +602,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelatedAsset other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -691,17 +617,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.RelatedAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                asset_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.RelatedAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1190,7 +1149,18 @@ public RelatedAsset parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new RelatedAsset(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java
    index 6425e4f84ffc..7c3346af2675 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java
    @@ -52,77 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private RelatedAssets(
    -      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:
    -            {
    -              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder subBuilder = null;
    -              if (relationshipAttributes_ != null) {
    -                subBuilder = relationshipAttributes_.toBuilder();
    -              }
    -              relationshipAttributes_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.RelationshipAttributes.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relationshipAttributes_);
    -                relationshipAttributes_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assets_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assets_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assets_ = java.util.Collections.unmodifiableList(assets_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetProto
             .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor;
    @@ -276,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < assets_.size(); i++) {
           output.writeMessage(2, assets_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -292,7 +221,7 @@ public int getSerializedSize() {
         for (int i = 0; i < assets_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -313,7 +242,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false;
         }
         if (!getAssetsList().equals(other.getAssetsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -332,7 +261,7 @@ public int hashCode() {
           hash = (37 * hash) + ASSETS_FIELD_NUMBER;
           hash = (53 * hash) + getAssetsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -461,19 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getAssetsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -487,10 +407,11 @@ public Builder clear() {
           }
           if (assetsBuilder_ == null) {
             assets_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        assets_ = null;
             assetsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -612,7 +533,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelatedAssets other) {
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -627,17 +548,51 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.RelatedAssets parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(
    +                    getRelationshipAttributesFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.cloud.asset.v1p7beta1.RelatedAsset m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), extensionRegistry);
    +                if (assetsBuilder_ == null) {
    +                  ensureAssetsIsMutable();
    +                  assets_.add(m);
    +                } else {
    +                  assetsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.RelatedAssets) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1225,7 +1180,18 @@ public RelatedAssets parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new RelatedAssets(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java
    index 927a7ae58ebb..be4ee6043020 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java
    @@ -56,73 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private RelationshipAttributes(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              sourceResourceType_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              targetResourceType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              action_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              type_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetProto
             .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    @@ -362,7 +295,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -383,7 +316,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -403,7 +336,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getSourceResourceType().equals(other.getSourceResourceType())) return false;
         if (!getTargetResourceType().equals(other.getTargetResourceType())) return false;
         if (!getAction().equals(other.getAction())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -422,7 +355,7 @@ public int hashCode() {
         hash = (53 * hash) + getTargetResourceType().hashCode();
         hash = (37 * hash) + ACTION_FIELD_NUMBER;
         hash = (53 * hash) + getAction().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -553,17 +486,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -674,7 +600,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelationshipAttributes
             action_ = other.action_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -689,18 +615,55 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.RelationshipAttributes parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                sourceResourceType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                targetResourceType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                action_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                type_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1165,7 +1128,18 @@ public RelationshipAttributes parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new RelationshipAttributes(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java
    index c4bc5825f452..f606f90e1fc9 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java
    @@ -57,101 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Resource(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              version_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryDocumentUri_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              discoveryName_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              resourceUrl_ = s;
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.protobuf.Struct.Builder subBuilder = null;
    -              if (data_ != null) {
    -                subBuilder = data_.toBuilder();
    -              }
    -              data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(data_);
    -                data_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 66:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              location_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.cloud.asset.v1p7beta1.AssetProto
             .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor;
    @@ -585,7 +490,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 8, location_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -615,7 +520,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -641,7 +546,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getData().equals(other.getData())) return false;
         }
         if (!getLocation().equals(other.getLocation())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -668,7 +573,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + LOCATION_FIELD_NUMBER;
         hash = (53 * hash) + getLocation().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -797,17 +702,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.Resource.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -945,7 +843,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Resource other) {
             location_ = other.location_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -960,17 +858,73 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.Resource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                version_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                discoveryDocumentUri_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                discoveryName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                resourceUrl_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            case 66:
    +              {
    +                location_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 66
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.Resource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1928,7 +1882,18 @@ public Resource parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Resource(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };