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 @@
*
*