diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
index 03358db03..0aa3572cc 100644
--- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
+++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
@@ -180,7 +180,7 @@ public AssetServiceStub getStub() {
* @param scope Required. The relative name of an asset. The search is limited to the resources
* within the `scope`. The allowed value must be: * Organization number (such as
* "organizations/123") * Folder number(such as "folders/1234") * Project number (such
- * as "projects/12345")
+ * as "projects/12345") * Project id (such as "projects/abc")
* @param query Optional. The query statement.
* @param assetTypes Optional. A list of asset types that this request searches for. If empty, it
* will search all the supported asset types.
@@ -315,7 +315,7 @@ public final SearchAllResourcesPagedResponse searchAllResources(
* @param scope Required. The relative name of an asset. The search is limited to the resources
* within the `scope`. The allowed value must be: * Organization number (such as
* "organizations/123") * Folder number(such as "folders/1234") * Project number (such
- * as "projects/12345")
+ * as "projects/12345") * Project id (such as "projects/abc")
* @param query Optional. The query statement. Examples: *
* "policy:myuser{@literal @}mydomain.com" * "policy:(myuser{@literal @}mydomain.com
* viewer)"
diff --git a/proto-google-cloud-asset-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-asset-v1beta1/clirr-ignored-differences.xml
index cb68a6b3c..61dd57fd3 100644
--- a/proto-google-cloud-asset-v1beta1/clirr-ignored-differences.xml
+++ b/proto-google-cloud-asset-v1beta1/clirr-ignored-differences.xml
@@ -11,4 +11,9 @@
+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ int getMatchedPermissionsCount();
+ /**
+ *
+ *
+ * + * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ boolean containsMatchedPermissions(java.lang.String key);
+ /** Use {@link #getMatchedPermissionsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
+ java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue);
+ /**
+ *
+ *
+ * + * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow(java.lang.String key);
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. + *+ * + * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} + */ + public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) + ExplanationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Explanation.newBuilder() to construct. + private Explanation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Explanation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Explanation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Explanation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + matchedPermissions_ = + com.google.protobuf.MapField.newMapField( + MatchedPermissionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + matchedPermissions__ = + input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + matchedPermissions_ + .getMutableMap() + .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetMatchedPermissions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); + } + + public static final int MATCHED_PERMISSIONS_FIELD_NUMBER = 1; + + private static final class MatchedPermissionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + defaultEntry = + com.google.protobuf.MapEntry + .
+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public boolean containsMatchedPermissions(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetMatchedPermissions().getMap().containsKey(key);
+ }
+ /** Use {@link #getMatchedPermissionsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
+ java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Explanation about the IAM policy search result. + *+ * + * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public boolean containsMatchedPermissions(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetMatchedPermissions().getMap().containsKey(key);
+ }
+ /** Use {@link #getMatchedPermissionsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
+ java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public Builder removeMatchedPermissions(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableMatchedPermissions().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public Builder putMatchedPermissions(
+ java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableMatchedPermissions().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The map from roles to their included permission matching the permission + * query (e.g. containing `policy.role.permissions:`). A sample role string: + * "roles/compute.instanceAdmin". The roles can also be found in the + * returned `policy` bindings. Note that the map is populated only if + * requesting with a permission query. + *+ * + *
map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
+ *
+ */
+ public Builder putAllMatchedPermissions(
+ java.util.Map- * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -260,8 +1232,10 @@ public boolean hasPolicy() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -275,8 +1249,10 @@ public com.google.iam.v1.Policy getPolicy() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -285,6 +1261,55 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
return getPolicy();
}
+ public static final int EXPLANATION_FIELD_NUMBER = 5;
+ private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return Whether the explanation field is set.
+ */
+ public boolean hasExplanation() {
+ return explanation_ != null;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return The explanation.
+ */
+ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() {
+ return explanation_ == null
+ ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance()
+ : explanation_;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
+ getExplanationOrBuilder() {
+ return getExplanation();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -308,6 +1333,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (policy_ != null) {
output.writeMessage(4, getPolicy());
}
+ if (explanation_ != null) {
+ output.writeMessage(5, getExplanation());
+ }
unknownFields.writeTo(output);
}
@@ -326,6 +1354,9 @@ public int getSerializedSize() {
if (policy_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolicy());
}
+ if (explanation_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExplanation());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -348,6 +1379,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasPolicy()) {
if (!getPolicy().equals(other.getPolicy())) return false;
}
+ if (hasExplanation() != other.hasExplanation()) return false;
+ if (hasExplanation()) {
+ if (!getExplanation().equals(other.getExplanation())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -367,6 +1402,10 @@ public int hashCode() {
hash = (37 * hash) + POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPolicy().hashCode();
}
+ if (hasExplanation()) {
+ hash = (37 * hash) + EXPLANATION_FIELD_NUMBER;
+ hash = (53 * hash) + getExplanation().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -523,6 +1562,12 @@ public Builder clear() {
policy_ = null;
policyBuilder_ = null;
}
+ if (explanationBuilder_ == null) {
+ explanation_ = null;
+ } else {
+ explanation_ = null;
+ explanationBuilder_ = null;
+ }
return this;
}
@@ -557,6 +1602,11 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult buildPartial() {
} else {
result.policy_ = policyBuilder_.build();
}
+ if (explanationBuilder_ == null) {
+ result.explanation_ = explanation_;
+ } else {
+ result.explanation_ = explanationBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -618,6 +1668,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult
if (other.hasPolicy()) {
mergePolicy(other.getPolicy());
}
+ if (other.hasExplanation()) {
+ mergeExplanation(other.getExplanation());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -900,8 +1953,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -915,8 +1970,10 @@ public boolean hasPolicy() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -934,8 +1991,10 @@ public com.google.iam.v1.Policy getPolicy() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -957,8 +2016,10 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -977,8 +2038,10 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -1001,8 +2064,10 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -1022,8 +2087,10 @@ public Builder clearPolicy() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -1037,8 +2104,10 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -1054,8 +2123,10 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -1076,6 +2147,209 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
return policyBuilder_;
}
+ private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
+ explanationBuilder_;
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return Whether the explanation field is set.
+ */
+ public boolean hasExplanation() {
+ return explanationBuilder_ != null || explanation_ != null;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return The explanation.
+ */
+ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() {
+ if (explanationBuilder_ == null) {
+ return explanation_ == null
+ ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation
+ .getDefaultInstance()
+ : explanation_;
+ } else {
+ return explanationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public Builder setExplanation(
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
+ if (explanationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ explanation_ = value;
+ onChanged();
+ } else {
+ explanationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public Builder setExplanation(
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
+ builderForValue) {
+ if (explanationBuilder_ == null) {
+ explanation_ = builderForValue.build();
+ onChanged();
+ } else {
+ explanationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public Builder mergeExplanation(
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
+ if (explanationBuilder_ == null) {
+ if (explanation_ != null) {
+ explanation_ =
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder(
+ explanation_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ explanation_ = value;
+ }
+ onChanged();
+ } else {
+ explanationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public Builder clearExplanation() {
+ if (explanationBuilder_ == null) {
+ explanation_ = null;
+ onChanged();
+ } else {
+ explanation_ = null;
+ explanationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
+ getExplanationBuilder() {
+
+ onChanged();
+ return getExplanationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
+ getExplanationOrBuilder() {
+ if (explanationBuilder_ != null) {
+ return explanationBuilder_.getMessageOrBuilder();
+ } else {
+ return explanation_ == null
+ ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation
+ .getDefaultInstance()
+ : explanation_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
+ getExplanationFieldBuilder() {
+ if (explanationBuilder_ == null) {
+ explanationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>(
+ getExplanation(), getParentForChildren(), isClean());
+ explanation_ = null;
+ }
+ return explanationBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
index 6c6a03ea3..908e23727 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
@@ -89,8 +89,10 @@ public interface IamPolicySearchResultOrBuilder
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -102,8 +104,10 @@ public interface IamPolicySearchResultOrBuilder
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
@@ -115,11 +119,52 @@ public interface IamPolicySearchResultOrBuilder
*
*
* - * Representation of the actual Cloud IAM policy set on a cloud resource. For - * each resource, there must be at most one Cloud IAM policy set on it. + * The IAM policy directly set on the given resource. Note that the original + * IAM policy can contain multiple bindings. This only contains the bindings + * that match the given query. For queries that don't contain a constrain on + * policies (e.g. an empty query), this contains all the bindings. ** *
.google.iam.v1.Policy policy = 4;
*/
com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
+
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return Whether the explanation field is set.
+ */
+ boolean hasExplanation();
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ *
+ * @return The explanation.
+ */
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation();
+ /**
+ *
+ *
+ * + * Explanation about the IAM policy search result. It contains additional + * information to explain why the search result matches the query. + *+ * + *
.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
+ */
+ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
+ getExplanationOrBuilder();
}
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
new file mode 100644
index 000000000..0888755bd
--- /dev/null
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
@@ -0,0 +1,735 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/asset/v1p1beta1/assets.proto
+
+package com.google.cloud.asset.v1p1beta1;
+
+/**
+ *
+ *
+ * + * IAM permissions + *+ * + * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} + */ +public final class Permissions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.Permissions) + PermissionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Permissions.newBuilder() to construct. + private Permissions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Permissions() { + permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Permissions(); + } + + @java.lang.Override + 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 (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + permissions_ = permissions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1p1beta1.Permissions.class, + com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); + } + + public static final int PERMISSIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList permissions_; + /** + * + * + *
+ * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return A list containing the permissions.
+ */
+ public com.google.protobuf.ProtocolStringList getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return The count of permissions.
+ */
+ public int getPermissionsCount() {
+ return permissions_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The permissions at the given index.
+ */
+ public java.lang.String getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the permissions at the given index.
+ */
+ public com.google.protobuf.ByteString getPermissionsBytes(int index) {
+ return permissions_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < permissions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < permissions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(permissions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getPermissionsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.asset.v1p1beta1.Permissions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.asset.v1p1beta1.Permissions other =
+ (com.google.cloud.asset.v1p1beta1.Permissions) obj;
+
+ if (!getPermissionsList().equals(other.getPermissionsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getPermissionsCount() > 0) {
+ hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPermissionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.Permissions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * IAM permissions + *+ * + * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return A list containing the permissions.
+ */
+ public com.google.protobuf.ProtocolStringList getPermissionsList() {
+ return permissions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return The count of permissions.
+ */
+ public int getPermissionsCount() {
+ return permissions_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The permissions at the given index.
+ */
+ public java.lang.String getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the permissions at the given index.
+ */
+ public com.google.protobuf.ByteString getPermissionsBytes(int index) {
+ return permissions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The permissions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPermissions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param value The permissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addPermissions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param values The permissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllPermissions(java.lang.Iterable+ * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPermissions() {
+ permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param value The bytes of the permissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addPermissionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.Permissions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.Permissions)
+ private static final com.google.cloud.asset.v1p1beta1.Permissions DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.Permissions();
+ }
+
+ public static com.google.cloud.asset.v1p1beta1.Permissions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return A list containing the permissions.
+ */
+ java.util.List+ * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @return The count of permissions.
+ */
+ int getPermissionsCount();
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The permissions at the given index.
+ */
+ java.lang.String getPermissions(int index);
+ /**
+ *
+ *
+ * + * A list of permissions. A sample permission string: "compute.disk.get". + *+ * + *
repeated string permissions = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the permissions at the given index.
+ */
+ com.google.protobuf.ByteString getPermissionsBytes(int index);
+}
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
index b3a8d42d2..90836a61d 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java
@@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -169,6 +170,7 @@ public java.lang.String getScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -691,6 +693,7 @@ public Builder mergeFrom(
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -717,6 +720,7 @@ public java.lang.String getScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -743,6 +747,7 @@ public com.google.protobuf.ByteString getScopeBytes() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -768,6 +773,7 @@ public Builder setScope(java.lang.String value) {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -789,6 +795,7 @@ public Builder clearScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java
index 5855985fe..91f2d39a5 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java
@@ -32,6 +32,7 @@ public interface SearchAllIamPoliciesRequestOrBuilder
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -48,6 +49,7 @@ public interface SearchAllIamPoliciesRequestOrBuilder
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
index fc5159c7a..0ca0132b2 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java
@@ -42,6 +42,7 @@ private SearchAllResourcesRequest() {
query_ = "";
assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
pageToken_ = "";
+ orderBy_ = "";
}
@java.lang.Override
@@ -110,6 +111,13 @@ private SearchAllResourcesRequest(
pageToken_ = s;
break;
}
+ case 82:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ orderBy_ = s;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -158,6 +166,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -184,6 +193,7 @@ public java.lang.String getScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -387,6 +397,59 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
}
+ public static final int ORDER_BY_FIELD_NUMBER = 10;
+ private volatile java.lang.Object orderBy_;
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The orderBy.
+ */
+ public java.lang.String getOrderBy() {
+ java.lang.Object ref = orderBy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orderBy_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for orderBy.
+ */
+ public com.google.protobuf.ByteString getOrderByBytes() {
+ java.lang.Object ref = orderBy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ orderBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -416,6 +479,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_);
}
+ if (!getOrderByBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, orderBy_);
+ }
unknownFields.writeTo(output);
}
@@ -445,6 +511,9 @@ public int getSerializedSize() {
if (!getPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_);
}
+ if (!getOrderByBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, orderBy_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -466,6 +535,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAssetTypesList().equals(other.getAssetTypesList())) return false;
if (getPageSize() != other.getPageSize()) return false;
if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!getOrderBy().equals(other.getOrderBy())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -489,6 +559,8 @@ public int hashCode() {
hash = (53 * hash) + getPageSize();
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
+ hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getOrderBy().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -645,6 +717,8 @@ public Builder clear() {
pageToken_ = "";
+ orderBy_ = "";
+
return this;
}
@@ -682,6 +756,7 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest buildPartial()
result.assetTypes_ = assetTypes_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
+ result.orderBy_ = orderBy_;
onBuilt();
return result;
}
@@ -757,6 +832,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequ
pageToken_ = other.pageToken_;
onChanged();
}
+ if (!other.getOrderBy().isEmpty()) {
+ orderBy_ = other.orderBy_;
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -799,6 +878,7 @@ public Builder mergeFrom(
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -825,6 +905,7 @@ public java.lang.String getScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -851,6 +932,7 @@ public com.google.protobuf.ByteString getScopeBytes() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -876,6 +958,7 @@ public Builder setScope(java.lang.String value) {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -897,6 +980,7 @@ public Builder clearScope() {
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1379,6 +1463,127 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object orderBy_ = "";
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The orderBy.
+ */
+ public java.lang.String getOrderBy() {
+ java.lang.Object ref = orderBy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orderBy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for orderBy.
+ */
+ public com.google.protobuf.ByteString getOrderByBytes() {
+ java.lang.Object ref = orderBy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ orderBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The orderBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrderBy(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ orderBy_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOrderBy() {
+
+ orderBy_ = getDefaultInstance().getOrderBy();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for orderBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ orderBy_ = value;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java
index 10f9b9711..9b27969f4 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java
@@ -32,6 +32,7 @@ public interface SearchAllResourcesRequestOrBuilder
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -48,6 +49,7 @@ public interface SearchAllResourcesRequestOrBuilder
* * Organization number (such as "organizations/123")
* * Folder number(such as "folders/1234")
* * Project number (such as "projects/12345")
+ * * Project id (such as "projects/abc")
*
*
* string scope = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -182,4 +184,35 @@ public interface SearchAllResourcesRequestOrBuilder
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString getPageTokenBytes();
+
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The orderBy.
+ */
+ java.lang.String getOrderBy();
+ /**
+ *
+ *
+ * + * Optional. A comma separated list of fields specifying the sorting order of the + * results. The default order is ascending. Add " desc" after the field name + * to indicate descending order. Redundant space characters are ignored. For + * example, " foo , bar desc ". + *+ * + *
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for orderBy.
+ */
+ com.google.protobuf.ByteString getOrderByBytes();
}
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
index 762584a78..18f82185c 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java
@@ -44,6 +44,8 @@ private StandardResourceMetadata() {
displayName_ = "";
description_ = "";
additionalAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ location_ = "";
+ networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -121,6 +123,36 @@ private StandardResourceMetadata(
additionalAttributes_.add(s);
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ location_ = s;
+ break;
+ }
+ case 98:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ labels_ =
+ com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000002;
+ }
+ com.google.protobuf.MapEntry+ * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The location.
+ */
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The bytes for location.
+ */
+ public com.google.protobuf.ByteString getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 12;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return A list containing the networkTags.
+ */
+ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
+ return networkTags_;
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return The count of networkTags.
+ */
+ public int getNetworkTagsCount() {
+ return networkTags_.size();
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The networkTags at the given index.
+ */
+ public java.lang.String getNetworkTags(int index) {
+ return networkTags_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the networkTags at the given index.
+ */
+ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
+ return networkTags_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -509,6 +778,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 10, additionalAttributes_.getRaw(i));
}
+ if (!getLocationBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, location_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12);
+ for (int i = 0; i < networkTags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, networkTags_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -541,6 +818,27 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAdditionalAttributesList().size();
}
+ if (!getLocationBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, location_);
+ }
+ for (java.util.Map.Entry+ * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The location.
+ */
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The bytes for location.
+ */
+ public com.google.protobuf.ByteString getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @param value The location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ location_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+
+ location_ = getDefaultInstance().getLocation();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @param value The bytes for location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ location_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ public Builder putAllLabels(java.util.Map+ * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return A list containing the networkTags.
+ */
+ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
+ return networkTags_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return The count of networkTags.
+ */
+ public int getNetworkTagsCount() {
+ return networkTags_.size();
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The networkTags at the given index.
+ */
+ public java.lang.String getNetworkTags(int index) {
+ return networkTags_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the networkTags at the given index.
+ */
+ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
+ return networkTags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index to set the value at.
+ * @param value The networkTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNetworkTagsIsMutable();
+ networkTags_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param value The networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNetworkTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNetworkTagsIsMutable();
+ networkTags_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param values The networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNetworkTags(java.lang.Iterable+ * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkTags() {
+ networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param value The bytes of the networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNetworkTagsIsMutable();
+ networkTags_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java
index b2a3c040a..e198a84fc 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java
@@ -220,4 +220,158 @@ public interface StandardResourceMetadataOrBuilder
* @return The bytes of the additionalAttributes at the given index.
*/
com.google.protobuf.ByteString getAdditionalAttributesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ *
+ *
+ * + * Location can be "global", regional like "us-east1", or zonal like + * "us-west1-b". + *+ * + *
string location = 11;
+ *
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString getLocationBytes();
+
+ /**
+ *
+ *
+ * + * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ * + * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ java.util.Map+ * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * Labels associated with this resource. See [Labelling and grouping GCP + * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
map<string, string> labels = 12;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return A list containing the networkTags.
+ */
+ java.util.List+ * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @return The count of networkTags.
+ */
+ int getNetworkTagsCount();
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The networkTags at the given index.
+ */
+ java.lang.String getNetworkTags(int index);
+ /**
+ *
+ *
+ * + * Network tags associated with this resource. Like labels, network tags are a + * type of annotations used to group GCP resources. See [Labelling GCP + * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) + * for more information. + *+ * + *
repeated string network_tags = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the networkTags at the given index.
+ */
+ com.google.protobuf.ByteString getNetworkTagsBytes(int index);
}
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto b/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto
index c75ce7adf..d5a0d8c41 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-//
syntax = "proto3";
@@ -68,6 +67,7 @@ message SearchAllResourcesRequest {
// * Organization number (such as "organizations/123")
// * Folder number(such as "folders/1234")
// * Project number (such as "projects/12345")
+ // * Project id (such as "projects/abc")
string scope = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. The query statement.
@@ -88,6 +88,12 @@ message SearchAllResourcesRequest {
// the previous response. The values of all other method parameters, must be
// identical to those in the previous call.
string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A comma separated list of fields specifying the sorting order of the
+ // results. The default order is ascending. Add " desc" after the field name
+ // to indicate descending order. Redundant space characters are ignored. For
+ // example, " foo , bar desc ".
+ string order_by = 10 [(google.api.field_behavior) = OPTIONAL];
}
// Search all resources response.
@@ -108,6 +114,7 @@ message SearchAllIamPoliciesRequest {
// * Organization number (such as "organizations/123")
// * Folder number(such as "folders/1234")
// * Project number (such as "projects/12345")
+ // * Project id (such as "projects/abc")
string scope = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. The query statement.
diff --git a/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto b/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto
index ff0b927b1..549ea688b 100644
--- a/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto
+++ b/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-//
syntax = "proto3";
@@ -56,10 +55,35 @@ message StandardResourceMetadata {
// Informational only. The exact set of attributes is subject to change.
// For example: project id, DNS name etc.
repeated string additional_attributes = 10;
+
+ // Location can be "global", regional like "us-east1", or zonal like
+ // "us-west1-b".
+ string location = 11;
+
+ // Labels associated with this resource. See [Labelling and grouping GCP
+ // resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
+ // for more information.
+ map