From cba4acca5f48faebda05187285f33854bc8c96fa Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 6 Apr 2020 12:59:18 -0700 Subject: [PATCH] feat(v1): add org policy and access context manager protos to client libraries (#130) * cloudasset: add org policy and access context manager protos to client libraries. https://github.com/googleapis/googleapis/commit/b655808b3481a92f478ae2f828a6ce8220e40f32 commit b655808b3481a92f478ae2f828a6ce8220e40f32 Author: Google APIs Date: Sat Mar 28 12:54:21 2020 -0700 cloudasset: add org policy and access context manager protos to client libraries. PiperOrigin-RevId: 303527638 * deps: add orgpolicy and accesscontextmanager dependencies Co-authored-by: Jeff Ching --- pom.xml | 10 + proto-google-cloud-asset-v1/pom.xml | 8 + .../java/com/google/cloud/asset/v1/Asset.java | 1733 +++++++++++++++-- .../google/cloud/asset/v1/AssetOrBuilder.java | 222 ++- .../com/google/cloud/asset/v1/AssetProto.java | 79 +- .../cloud/asset/v1/AssetServiceProto.java | 176 +- .../v1/BatchGetAssetsHistoryRequest.java | 120 +- ...BatchGetAssetsHistoryRequestOrBuilder.java | 30 +- .../cloud/asset/v1/BigQueryDestination.java | 30 +- .../v1/BigQueryDestinationOrBuilder.java | 8 +- .../cloud/asset/v1/ExportAssetsRequest.java | 96 +- .../v1/ExportAssetsRequestOrBuilder.java | 24 +- .../java/com/google/cloud/asset/v1/Feed.java | 108 +- .../google/cloud/asset/v1/FeedOrBuilder.java | 32 +- .../cloud/asset/v1/FeedOutputConfig.java | 24 +- .../asset/v1/FeedOutputConfigOrBuilder.java | 6 +- .../cloud/asset/v1/PubsubDestination.java | 18 +- .../asset/v1/PubsubDestinationOrBuilder.java | 4 +- .../com/google/cloud/asset/v1/Resource.java | 269 +-- .../cloud/asset/v1/ResourceOrBuilder.java | 74 +- .../google/cloud/asset/v1/TemporalAsset.java | 40 +- .../asset/v1/TemporalAssetOrBuilder.java | 8 +- .../com/google/cloud/asset/v1/TimeWindow.java | 52 +- .../cloud/asset/v1/TimeWindowOrBuilder.java | 12 +- .../google/cloud/asset/v1/asset_service.proto | 81 +- .../proto/google/cloud/asset/v1/assets.proto | 120 +- synth.metadata | 27 +- 27 files changed, 2560 insertions(+), 851 deletions(-) diff --git a/pom.xml b/pom.xml index 1198beb88..ce57fe73f 100644 --- a/pom.xml +++ b/pom.xml @@ -197,6 +197,16 @@ animal-sniffer-annotations ${animal-sniffer.version} + + com.google.api.grpc + proto-google-cloud-orgpolicy-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-identity-accesscontextmanager-v1 + 0.1.0 + junit diff --git a/proto-google-cloud-asset-v1/pom.xml b/proto-google-cloud-asset-v1/pom.xml index 3b35e95dd..849a325ef 100644 --- a/proto-google-cloud-asset-v1/pom.xml +++ b/proto-google-cloud-asset-v1/pom.xml @@ -33,5 +33,13 @@ com.google.api.grpc proto-google-iam-v1 + + com.google.api.grpc + proto-google-cloud-orgpolicy-v1 + + + com.google.api.grpc + proto-google-identity-accesscontextmanager-v1 + \ No newline at end of file diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java index c5f032899..d2ba56d66 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java @@ -22,8 +22,11 @@ * * *
- * Cloud asset. This includes all Google Cloud Platform resources,
- * Cloud IAM policies, and other non-GCP assets.
+ * An asset in Google Cloud. An asset can be any resource in the Google Cloud
+ * [resource
+ * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+ * a resource outside the Google Cloud resource hierarchy (such as Google
+ * Kubernetes Engine clusters and objects), or a Cloud IAM policy.
  * 
* * Protobuf type {@code google.cloud.asset.v1.Asset} @@ -41,6 +44,7 @@ private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Asset() { name_ = ""; assetType_ = ""; + orgPolicy_ = java.util.Collections.emptyList(); ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @@ -115,14 +119,90 @@ private Asset( iamPolicy_ = subBuilder.buildPartial(); } + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + orgPolicy_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + orgPolicy_.add( + input.readMessage( + com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry)); + break; + } + case 58: + { + com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null; + if (accessContextPolicyCase_ == 7) { + subBuilder = + ((com.google.identity.accesscontextmanager.v1.AccessPolicy) + accessContextPolicy_) + .toBuilder(); + } + accessContextPolicy_ = + input.readMessage( + com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.identity.accesscontextmanager.v1.AccessPolicy) + accessContextPolicy_); + accessContextPolicy_ = subBuilder.buildPartial(); + } + accessContextPolicyCase_ = 7; + break; + } + case 66: + { + com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null; + if (accessContextPolicyCase_ == 8) { + subBuilder = + ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_) + .toBuilder(); + } + accessContextPolicy_ = + input.readMessage( + com.google.identity.accesscontextmanager.v1.AccessLevel.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + accessContextPolicy_ = subBuilder.buildPartial(); + } + accessContextPolicyCase_ = 8; + break; + } + case 74: + { + com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder = + null; + if (accessContextPolicyCase_ == 9) { + subBuilder = + ((com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_) + .toBuilder(); + } + accessContextPolicy_ = + input.readMessage( + com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_); + accessContextPolicy_ = subBuilder.buildPartial(); + } + accessContextPolicyCase_ = 9; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } ancestors_.add(s); break; @@ -142,6 +222,9 @@ private Asset( throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { + orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { ancestors_ = ancestors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -163,6 +246,56 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1.Asset.class, com.google.cloud.asset.v1.Asset.Builder.class); } + private int accessContextPolicyCase_ = 0; + private java.lang.Object accessContextPolicy_; + + public enum AccessContextPolicyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCESS_POLICY(7), + ACCESS_LEVEL(8), + SERVICE_PERIMETER(9), + ACCESSCONTEXTPOLICY_NOT_SET(0); + private final int value; + + private AccessContextPolicyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AccessContextPolicyCase valueOf(int value) { + return forNumber(value); + } + + public static AccessContextPolicyCase forNumber(int value) { + switch (value) { + case 7: + return ACCESS_POLICY; + case 8: + return ACCESS_LEVEL; + case 9: + return SERVICE_PERIMETER; + case 0: + return ACCESSCONTEXTPOLICY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AccessContextPolicyCase getAccessContextPolicyCase() { + return AccessContextPolicyCase.forNumber(accessContextPolicyCase_); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -170,9 +303,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The full name of the asset. For example:
-   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
    * See [Resource
-   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
    * 
* @@ -196,9 +329,9 @@ public java.lang.String getName() { * *
    * The full name of the asset. For example:
-   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
    * See [Resource
-   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
    * 
* @@ -224,7 +357,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Type of the asset. Example: "compute.googleapis.com/Disk".
+   * The type of the asset. For example: "compute.googleapis.com/Disk"
+   * See [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+   * for more information.
    * 
* * string asset_type = 2; @@ -246,7 +382,10 @@ public java.lang.String getAssetType() { * * *
-   * Type of the asset. Example: "compute.googleapis.com/Disk".
+   * The type of the asset. For example: "compute.googleapis.com/Disk"
+   * See [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+   * for more information.
    * 
* * string asset_type = 2; @@ -271,7 +410,7 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -285,7 +424,7 @@ public boolean hasResource() { * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -299,7 +438,7 @@ public com.google.cloud.asset.v1.Resource getResource() { * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -314,8 +453,15 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -329,8 +475,15 @@ public boolean hasIamPolicy() { * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -344,8 +497,15 @@ public com.google.iam.v1.Policy getIamPolicy() { * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -354,17 +514,187 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { return getIamPolicy(); } + public static final int ORG_POLICY_FIELD_NUMBER = 6; + private java.util.List orgPolicy_; + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public java.util.List getOrgPolicyList() { + return orgPolicy_; + } + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public java.util.List + getOrgPolicyOrBuilderList() { + return orgPolicy_; + } + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public int getOrgPolicyCount() { + return orgPolicy_.size(); + } + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) { + return orgPolicy_.get(index); + } + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) { + return orgPolicy_.get(index); + } + + public static final int ACCESS_POLICY_FIELD_NUMBER = 7; + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return accessContextPolicyCase_ == 7; + } + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return The accessPolicy. + */ + public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { + if (accessContextPolicyCase_ == 7) { + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder + getAccessPolicyOrBuilder() { + if (accessContextPolicyCase_ == 7) { + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } + + public static final int ACCESS_LEVEL_FIELD_NUMBER = 8; + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return Whether the accessLevel field is set. + */ + public boolean hasAccessLevel() { + return accessContextPolicyCase_ == 8; + } + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return The accessLevel. + */ + public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { + if (accessContextPolicyCase_ == 8) { + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder + getAccessLevelOrBuilder() { + if (accessContextPolicyCase_ == 8) { + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } + + public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9; + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return Whether the servicePerimeter field is set. + */ + public boolean hasServicePerimeter() { + return accessContextPolicyCase_ == 9; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return The servicePerimeter. + */ + public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { + if (accessContextPolicyCase_ == 9) { + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder + getServicePerimeterOrBuilder() { + if (accessContextPolicyCase_ == 9) { + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } + public static final int ANCESTORS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList ancestors_; /** * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -378,11 +708,13 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() { * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -396,11 +728,13 @@ public int getAncestorsCount() { * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -415,11 +749,13 @@ public java.lang.String getAncestors(int index) { * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -457,6 +793,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (iamPolicy_ != null) { output.writeMessage(4, getIamPolicy()); } + for (int i = 0; i < orgPolicy_.size(); i++) { + output.writeMessage(6, orgPolicy_.get(i)); + } + if (accessContextPolicyCase_ == 7) { + output.writeMessage( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + } + if (accessContextPolicyCase_ == 8) { + output.writeMessage( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + } + if (accessContextPolicyCase_ == 9) { + output.writeMessage( + 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); } @@ -481,6 +832,25 @@ public int getSerializedSize() { if (iamPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } + for (int i = 0; i < orgPolicy_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); + } + if (accessContextPolicyCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + } + if (accessContextPolicyCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + } + if (accessContextPolicyCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + } { int dataSize = 0; for (int i = 0; i < ancestors_.size(); i++) { @@ -514,7 +884,22 @@ public boolean equals(final java.lang.Object obj) { if (hasIamPolicy()) { if (!getIamPolicy().equals(other.getIamPolicy())) return false; } + if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; if (!getAncestorsList().equals(other.getAncestorsList())) return false; + if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; + switch (accessContextPolicyCase_) { + case 7: + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + break; + case 8: + if (!getAccessLevel().equals(other.getAccessLevel())) return false; + break; + case 9: + if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -538,10 +923,30 @@ public int hashCode() { hash = (37 * hash) + IAM_POLICY_FIELD_NUMBER; hash = (53 * hash) + getIamPolicy().hashCode(); } + if (getOrgPolicyCount() > 0) { + hash = (37 * hash) + ORG_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getOrgPolicyList().hashCode(); + } if (getAncestorsCount() > 0) { hash = (37 * hash) + ANCESTORS_FIELD_NUMBER; hash = (53 * hash) + getAncestorsList().hashCode(); } + switch (accessContextPolicyCase_) { + case 7: + hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicy().hashCode(); + break; + case 8: + hash = (37 * hash) + ACCESS_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getAccessLevel().hashCode(); + break; + case 9: + hash = (37 * hash) + SERVICE_PERIMETER_FIELD_NUMBER; + hash = (53 * hash) + getServicePerimeter().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -645,8 +1050,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud asset. This includes all Google Cloud Platform resources,
-   * Cloud IAM policies, and other non-GCP assets.
+   * An asset in Google Cloud. An asset can be any resource in the Google Cloud
+   * [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * a resource outside the Google Cloud resource hierarchy (such as Google
+   * Kubernetes Engine clusters and objects), or a Cloud IAM policy.
    * 
* * Protobuf type {@code google.cloud.asset.v1.Asset} @@ -680,7 +1088,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOrgPolicyFieldBuilder(); + } } @java.lang.Override @@ -702,8 +1112,16 @@ public Builder clear() { iamPolicy_ = null; iamPolicyBuilder_ = null; } + if (orgPolicyBuilder_ == null) { + orgPolicy_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + orgPolicyBuilder_.clear(); + } ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; return this; } @@ -743,11 +1161,42 @@ public com.google.cloud.asset.v1.Asset buildPartial() { } else { result.iamPolicy_ = iamPolicyBuilder_.build(); } - if (((bitField0_ & 0x00000001) != 0)) { + if (orgPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.orgPolicy_ = orgPolicy_; + } else { + result.orgPolicy_ = orgPolicyBuilder_.build(); + } + if (accessContextPolicyCase_ == 7) { + if (accessPolicyBuilder_ == null) { + result.accessContextPolicy_ = accessContextPolicy_; + } else { + result.accessContextPolicy_ = accessPolicyBuilder_.build(); + } + } + if (accessContextPolicyCase_ == 8) { + if (accessLevelBuilder_ == null) { + result.accessContextPolicy_ = accessContextPolicy_; + } else { + result.accessContextPolicy_ = accessLevelBuilder_.build(); + } + } + if (accessContextPolicyCase_ == 9) { + if (servicePerimeterBuilder_ == null) { + result.accessContextPolicy_ = accessContextPolicy_; + } else { + result.accessContextPolicy_ = servicePerimeterBuilder_.build(); + } + } + if (((bitField0_ & 0x00000002) != 0)) { ancestors_ = ancestors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.ancestors_ = ancestors_; + result.accessContextPolicyCase_ = accessContextPolicyCase_; onBuilt(); return result; } @@ -811,16 +1260,64 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) { if (other.hasIamPolicy()) { mergeIamPolicy(other.getIamPolicy()); } + if (orgPolicyBuilder_ == null) { + if (!other.orgPolicy_.isEmpty()) { + if (orgPolicy_.isEmpty()) { + orgPolicy_ = other.orgPolicy_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrgPolicyIsMutable(); + orgPolicy_.addAll(other.orgPolicy_); + } + onChanged(); + } + } else { + if (!other.orgPolicy_.isEmpty()) { + if (orgPolicyBuilder_.isEmpty()) { + orgPolicyBuilder_.dispose(); + orgPolicyBuilder_ = null; + orgPolicy_ = other.orgPolicy_; + bitField0_ = (bitField0_ & ~0x00000001); + orgPolicyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrgPolicyFieldBuilder() + : null; + } else { + orgPolicyBuilder_.addAllMessages(other.orgPolicy_); + } + } + } if (!other.ancestors_.isEmpty()) { if (ancestors_.isEmpty()) { ancestors_ = other.ancestors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAncestorsIsMutable(); ancestors_.addAll(other.ancestors_); } onChanged(); } + switch (other.getAccessContextPolicyCase()) { + case ACCESS_POLICY: + { + mergeAccessPolicy(other.getAccessPolicy()); + break; + } + case ACCESS_LEVEL: + { + mergeAccessLevel(other.getAccessLevel()); + break; + } + case SERVICE_PERIMETER: + { + mergeServicePerimeter(other.getServicePerimeter()); + break; + } + case ACCESSCONTEXTPOLICY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -850,6 +1347,20 @@ public Builder mergeFrom( return this; } + private int accessContextPolicyCase_ = 0; + private java.lang.Object accessContextPolicy_; + + public AccessContextPolicyCase getAccessContextPolicyCase() { + return AccessContextPolicyCase.forNumber(accessContextPolicyCase_); + } + + public Builder clearAccessContextPolicy() { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -858,9 +1369,9 @@ public Builder mergeFrom( * *
      * The full name of the asset. For example:
-     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
      * See [Resource
-     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
      * 
* @@ -884,9 +1395,9 @@ public java.lang.String getName() { * *
      * The full name of the asset. For example:
-     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
      * See [Resource
-     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
      * 
* @@ -910,9 +1421,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The full name of the asset. For example:
-     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
      * See [Resource
-     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
      * 
* @@ -935,9 +1446,9 @@ public Builder setName(java.lang.String value) { * *
      * The full name of the asset. For example:
-     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
      * See [Resource
-     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
      * 
* @@ -956,9 +1467,9 @@ public Builder clearName() { * *
      * The full name of the asset. For example:
-     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
      * See [Resource
-     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
      * 
* @@ -983,7 +1494,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Type of the asset. Example: "compute.googleapis.com/Disk".
+     * The type of the asset. For example: "compute.googleapis.com/Disk"
+     * See [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * for more information.
      * 
* * string asset_type = 2; @@ -1005,7 +1519,10 @@ public java.lang.String getAssetType() { * * *
-     * Type of the asset. Example: "compute.googleapis.com/Disk".
+     * The type of the asset. For example: "compute.googleapis.com/Disk"
+     * See [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * for more information.
      * 
* * string asset_type = 2; @@ -1027,7 +1544,10 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * *
-     * Type of the asset. Example: "compute.googleapis.com/Disk".
+     * The type of the asset. For example: "compute.googleapis.com/Disk"
+     * See [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * for more information.
      * 
* * string asset_type = 2; @@ -1048,7 +1568,10 @@ public Builder setAssetType(java.lang.String value) { * * *
-     * Type of the asset. Example: "compute.googleapis.com/Disk".
+     * The type of the asset. For example: "compute.googleapis.com/Disk"
+     * See [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * for more information.
      * 
* * string asset_type = 2; @@ -1065,7 +1588,10 @@ public Builder clearAssetType() { * * *
-     * Type of the asset. Example: "compute.googleapis.com/Disk".
+     * The type of the asset. For example: "compute.googleapis.com/Disk"
+     * See [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * for more information.
      * 
* * string asset_type = 2; @@ -1094,7 +1620,7 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1108,7 +1634,7 @@ public boolean hasResource() { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1128,7 +1654,7 @@ public com.google.cloud.asset.v1.Resource getResource() { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1150,7 +1676,7 @@ public Builder setResource(com.google.cloud.asset.v1.Resource value) { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1169,7 +1695,7 @@ public Builder setResource(com.google.cloud.asset.v1.Resource.Builder builderFor * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1195,7 +1721,7 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1215,7 +1741,7 @@ public Builder clearResource() { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1229,7 +1755,7 @@ public com.google.cloud.asset.v1.Resource.Builder getResourceBuilder() { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1247,7 +1773,7 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * * *
-     * Representation of the resource.
+     * A representation of the resource.
      * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -1279,8 +1805,15 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1294,8 +1827,15 @@ public boolean hasIamPolicy() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1313,8 +1853,15 @@ public com.google.iam.v1.Policy getIamPolicy() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1336,8 +1883,15 @@ public Builder setIamPolicy(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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1356,8 +1910,15 @@ public Builder setIamPolicy(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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1381,8 +1942,15 @@ public Builder mergeIamPolicy(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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1402,8 +1970,15 @@ public Builder clearIamPolicy() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1417,8 +1992,15 @@ public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1434,8 +2016,15 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { * * *
-     * 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.
+     * A representation of the Cloud IAM policy set on a Google Cloud resource.
+     * There can be a maximum of one Cloud IAM policy set on any given resource.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+     * more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -1457,24 +2046,876 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { return iamPolicyBuilder_; } - private com.google.protobuf.LazyStringList ancestors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private java.util.List orgPolicy_ = + java.util.Collections.emptyList(); - private void ensureAncestorsIsMutable() { + private void ensureOrgPolicyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); + orgPolicy_ = new java.util.ArrayList(orgPolicy_); bitField0_ |= 0x00000001; } } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.orgpolicy.v1.Policy, + com.google.cloud.orgpolicy.v1.Policy.Builder, + com.google.cloud.orgpolicy.v1.PolicyOrBuilder> + orgPolicyBuilder_; + + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public java.util.List getOrgPolicyList() { + if (orgPolicyBuilder_ == null) { + return java.util.Collections.unmodifiableList(orgPolicy_); + } else { + return orgPolicyBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public int getOrgPolicyCount() { + if (orgPolicyBuilder_ == null) { + return orgPolicy_.size(); + } else { + return orgPolicyBuilder_.getCount(); + } + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) { + if (orgPolicyBuilder_ == null) { + return orgPolicy_.get(index); + } else { + return orgPolicyBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) { + if (orgPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrgPolicyIsMutable(); + orgPolicy_.set(index, value); + onChanged(); + } else { + orgPolicyBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder setOrgPolicy( + int index, com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) { + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + orgPolicy_.set(index, builderForValue.build()); + onChanged(); + } else { + orgPolicyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) { + if (orgPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrgPolicyIsMutable(); + orgPolicy_.add(value); + onChanged(); + } else { + orgPolicyBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) { + if (orgPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrgPolicyIsMutable(); + orgPolicy_.add(index, value); + onChanged(); + } else { + orgPolicyBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) { + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + orgPolicy_.add(builderForValue.build()); + onChanged(); + } else { + orgPolicyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder addOrgPolicy( + int index, com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) { + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + orgPolicy_.add(index, builderForValue.build()); + onChanged(); + } else { + orgPolicyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder addAllOrgPolicy( + java.lang.Iterable values) { + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_); + onChanged(); + } else { + orgPolicyBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder clearOrgPolicy() { + if (orgPolicyBuilder_ == null) { + orgPolicy_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + orgPolicyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public Builder removeOrgPolicy(int index) { + if (orgPolicyBuilder_ == null) { + ensureOrgPolicyIsMutable(); + orgPolicy_.remove(index); + onChanged(); + } else { + orgPolicyBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) { + return getOrgPolicyFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) { + if (orgPolicyBuilder_ == null) { + return orgPolicy_.get(index); + } else { + return orgPolicyBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public java.util.List + getOrgPolicyOrBuilderList() { + if (orgPolicyBuilder_ != null) { + return orgPolicyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orgPolicy_); + } + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() { + return getOrgPolicyFieldBuilder() + .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance()); + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) { + return getOrgPolicyFieldBuilder() + .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance()); + } + /** + * + * + *
+     * A representation of an [organization
+     * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+     * There can be more than one organization policy with different constraints
+     * set on a given resource.
+     * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + public java.util.List getOrgPolicyBuilderList() { + return getOrgPolicyFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.orgpolicy.v1.Policy, + com.google.cloud.orgpolicy.v1.Policy.Builder, + com.google.cloud.orgpolicy.v1.PolicyOrBuilder> + getOrgPolicyFieldBuilder() { + if (orgPolicyBuilder_ == null) { + orgPolicyBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.orgpolicy.v1.Policy, + com.google.cloud.orgpolicy.v1.Policy.Builder, + com.google.cloud.orgpolicy.v1.PolicyOrBuilder>( + orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + orgPolicy_ = null; + } + return orgPolicyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessPolicy, + com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, + com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> + accessPolicyBuilder_; + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return accessContextPolicyCase_ == 7; + } + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return The accessPolicy. + */ + public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { + if (accessPolicyBuilder_ == null) { + if (accessContextPolicyCase_ == 7) { + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } else { + if (accessContextPolicyCase_ == 7) { + return accessPolicyBuilder_.getMessage(); + } + return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessContextPolicy_ = value; + onChanged(); + } else { + accessPolicyBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 7; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public Builder setAccessPolicy( + com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder builderForValue) { + if (accessPolicyBuilder_ == null) { + accessContextPolicy_ = builderForValue.build(); + onChanged(); + } else { + accessPolicyBuilder_.setMessage(builderForValue.build()); + } + accessContextPolicyCase_ = 7; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public Builder mergeAccessPolicy( + com.google.identity.accesscontextmanager.v1.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (accessContextPolicyCase_ == 7 + && accessContextPolicy_ + != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder( + (com.google.identity.accesscontextmanager.v1.AccessPolicy) + accessContextPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + accessContextPolicy_ = value; + } + onChanged(); + } else { + if (accessContextPolicyCase_ == 7) { + accessPolicyBuilder_.mergeFrom(value); + } + accessPolicyBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 7; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public Builder clearAccessPolicy() { + if (accessPolicyBuilder_ == null) { + if (accessContextPolicyCase_ == 7) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + onChanged(); + } + } else { + if (accessContextPolicyCase_ == 7) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + } + accessPolicyBuilder_.clear(); + } + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder + getAccessPolicyBuilder() { + return getAccessPolicyFieldBuilder().getBuilder(); + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder + getAccessPolicyOrBuilder() { + if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) { + return accessPolicyBuilder_.getMessageOrBuilder(); + } else { + if (accessContextPolicyCase_ == 7) { + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } + } + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessPolicy, + com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, + com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> + getAccessPolicyFieldBuilder() { + if (accessPolicyBuilder_ == null) { + if (!(accessContextPolicyCase_ == 7)) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); + } + accessPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessPolicy, + com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, + com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>( + (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_, + getParentForChildren(), + isClean()); + accessContextPolicy_ = null; + } + accessContextPolicyCase_ = 7; + onChanged(); + ; + return accessPolicyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessLevel, + com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, + com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> + accessLevelBuilder_; + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return Whether the accessLevel field is set. + */ + public boolean hasAccessLevel() { + return accessContextPolicyCase_ == 8; + } + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return The accessLevel. + */ + public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { + if (accessLevelBuilder_ == null) { + if (accessContextPolicyCase_ == 8) { + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } else { + if (accessContextPolicyCase_ == 8) { + return accessLevelBuilder_.getMessage(); + } + return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) { + if (accessLevelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessContextPolicy_ = value; + onChanged(); + } else { + accessLevelBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 8; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public Builder setAccessLevel( + com.google.identity.accesscontextmanager.v1.AccessLevel.Builder builderForValue) { + if (accessLevelBuilder_ == null) { + accessContextPolicy_ = builderForValue.build(); + onChanged(); + } else { + accessLevelBuilder_.setMessage(builderForValue.build()); + } + accessContextPolicyCase_ = 8; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) { + if (accessLevelBuilder_ == null) { + if (accessContextPolicyCase_ == 8 + && accessContextPolicy_ + != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder( + (com.google.identity.accesscontextmanager.v1.AccessLevel) + accessContextPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + accessContextPolicy_ = value; + } + onChanged(); + } else { + if (accessContextPolicyCase_ == 8) { + accessLevelBuilder_.mergeFrom(value); + } + accessLevelBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 8; + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public Builder clearAccessLevel() { + if (accessLevelBuilder_ == null) { + if (accessContextPolicyCase_ == 8) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + onChanged(); + } + } else { + if (accessContextPolicyCase_ == 8) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + } + accessLevelBuilder_.clear(); + } + return this; + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccessLevelBuilder() { + return getAccessLevelFieldBuilder().getBuilder(); + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder + getAccessLevelOrBuilder() { + if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) { + return accessLevelBuilder_.getMessageOrBuilder(); + } else { + if (accessContextPolicyCase_ == 8) { + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } + } + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessLevel, + com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, + com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> + getAccessLevelFieldBuilder() { + if (accessLevelBuilder_ == null) { + if (!(accessContextPolicyCase_ == 8)) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); + } + accessLevelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.AccessLevel, + com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, + com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>( + (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_, + getParentForChildren(), + isClean()); + accessContextPolicy_ = null; + } + accessContextPolicyCase_ = 8; + onChanged(); + ; + return accessLevelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.ServicePerimeter, + com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, + com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> + servicePerimeterBuilder_; + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return Whether the servicePerimeter field is set. + */ + public boolean hasServicePerimeter() { + return accessContextPolicyCase_ == 9; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return The servicePerimeter. + */ + public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { + if (servicePerimeterBuilder_ == null) { + if (accessContextPolicyCase_ == 9) { + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } else { + if (accessContextPolicyCase_ == 9) { + return servicePerimeterBuilder_.getMessage(); + } + return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public Builder setServicePerimeter( + com.google.identity.accesscontextmanager.v1.ServicePerimeter value) { + if (servicePerimeterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessContextPolicy_ = value; + onChanged(); + } else { + servicePerimeterBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 9; + return this; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public Builder setServicePerimeter( + com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder builderForValue) { + if (servicePerimeterBuilder_ == null) { + accessContextPolicy_ = builderForValue.build(); + onChanged(); + } else { + servicePerimeterBuilder_.setMessage(builderForValue.build()); + } + accessContextPolicyCase_ = 9; + return this; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public Builder mergeServicePerimeter( + com.google.identity.accesscontextmanager.v1.ServicePerimeter value) { + if (servicePerimeterBuilder_ == null) { + if (accessContextPolicyCase_ == 9 + && accessContextPolicy_ + != com.google.identity.accesscontextmanager.v1.ServicePerimeter + .getDefaultInstance()) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder( + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + accessContextPolicy_ = value; + } + onChanged(); + } else { + if (accessContextPolicyCase_ == 9) { + servicePerimeterBuilder_.mergeFrom(value); + } + servicePerimeterBuilder_.setMessage(value); + } + accessContextPolicyCase_ = 9; + return this; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public Builder clearServicePerimeter() { + if (servicePerimeterBuilder_ == null) { + if (accessContextPolicyCase_ == 9) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + onChanged(); + } + } else { + if (accessContextPolicyCase_ == 9) { + accessContextPolicyCase_ = 0; + accessContextPolicy_ = null; + } + servicePerimeterBuilder_.clear(); + } + return this; + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder + getServicePerimeterBuilder() { + return getServicePerimeterFieldBuilder().getBuilder(); + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder + getServicePerimeterOrBuilder() { + if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) { + return servicePerimeterBuilder_.getMessageOrBuilder(); + } else { + if (accessContextPolicyCase_ == 9) { + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_; + } + return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } + } + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.ServicePerimeter, + com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, + com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> + getServicePerimeterFieldBuilder() { + if (servicePerimeterBuilder_ == null) { + if (!(accessContextPolicyCase_ == 9)) { + accessContextPolicy_ = + com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); + } + servicePerimeterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.identity.accesscontextmanager.v1.ServicePerimeter, + com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, + com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>( + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_, + getParentForChildren(), + isClean()); + accessContextPolicy_ = null; + } + accessContextPolicyCase_ = 9; + onChanged(); + ; + return servicePerimeterBuilder_; + } + + private com.google.protobuf.LazyStringList ancestors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAncestorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); + bitField0_ |= 0x00000002; + } + } /** * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1488,11 +2929,13 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1506,11 +2949,13 @@ public int getAncestorsCount() { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1525,11 +2970,13 @@ public java.lang.String getAncestors(int index) { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1544,11 +2991,13 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1570,11 +3019,13 @@ public Builder setAncestors(int index, java.lang.String value) { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1595,11 +3046,13 @@ public Builder addAncestors(java.lang.String value) { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1617,11 +3070,13 @@ public Builder addAllAncestors(java.lang.Iterable values) { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; @@ -1630,7 +3085,7 @@ public Builder addAllAncestors(java.lang.Iterable values) { */ public Builder clearAncestors() { ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1638,11 +3093,13 @@ public Builder clearAncestors() { * * *
-     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-     * represented as a list of relative resource names. Ancestry path starts with
-     * the closest CRM ancestor and ends at root. If the asset is a CRM
-     * project/folder/organization, this starts from the asset itself.
-     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * The ancestry path of an asset in Google Cloud [resource
+     * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+     * represented as a list of relative resource names. An ancestry path starts
+     * with the closest ancestor in the hierarchy and ends at root. If the asset
+     * is a project, folder, or organization, the ancestry path starts from the
+     * asset itself.
+     * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
      * 
* * repeated string ancestors = 10; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java index 359f7f408..0cdcf720c 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java @@ -28,9 +28,9 @@ public interface AssetOrBuilder * *
    * The full name of the asset. For example:
-   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
    * See [Resource
-   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
    * 
* @@ -44,9 +44,9 @@ public interface AssetOrBuilder * *
    * The full name of the asset. For example:
-   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1"
    * See [Resource
-   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
    * 
* @@ -60,7 +60,10 @@ public interface AssetOrBuilder * * *
-   * Type of the asset. Example: "compute.googleapis.com/Disk".
+   * The type of the asset. For example: "compute.googleapis.com/Disk"
+   * See [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+   * for more information.
    * 
* * string asset_type = 2; @@ -72,7 +75,10 @@ public interface AssetOrBuilder * * *
-   * Type of the asset. Example: "compute.googleapis.com/Disk".
+   * The type of the asset. For example: "compute.googleapis.com/Disk"
+   * See [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+   * for more information.
    * 
* * string asset_type = 2; @@ -85,7 +91,7 @@ public interface AssetOrBuilder * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -97,7 +103,7 @@ public interface AssetOrBuilder * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -109,7 +115,7 @@ public interface AssetOrBuilder * * *
-   * Representation of the resource.
+   * A representation of the resource.
    * 
* * .google.cloud.asset.v1.Resource resource = 3; @@ -120,8 +126,15 @@ public interface AssetOrBuilder * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -133,8 +146,15 @@ public interface AssetOrBuilder * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -146,8 +166,15 @@ public interface AssetOrBuilder * * *
-   * 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.
+   * A representation of the Cloud IAM policy set on a Google Cloud resource.
+   * There can be a maximum of one Cloud IAM policy set on any given resource.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
+   * more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -158,11 +185,128 @@ public interface AssetOrBuilder * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + java.util.List getOrgPolicyList(); + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index); + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + int getOrgPolicyCount(); + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + java.util.List + getOrgPolicyOrBuilderList(); + /** + * + * + *
+   * A representation of an [organization
+   * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
+   * There can be more than one organization policy with different constraints
+   * set on a given resource.
+   * 
+ * + * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; + */ + com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index); + + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return Whether the accessPolicy field is set. + */ + boolean hasAccessPolicy(); + /** + * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * + * @return The accessPolicy. + */ + com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(); + /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */ + com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder(); + + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return Whether the accessLevel field is set. + */ + boolean hasAccessLevel(); + /** + * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * + * @return The accessLevel. + */ + com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel(); + /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */ + com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder(); + + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return Whether the servicePerimeter field is set. + */ + boolean hasServicePerimeter(); + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * + * @return The servicePerimeter. + */ + com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter(); + /** + * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + */ + com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder + getServicePerimeterOrBuilder(); + + /** + * + * + *
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -174,11 +318,13 @@ public interface AssetOrBuilder * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -190,11 +336,13 @@ public interface AssetOrBuilder * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -207,11 +355,13 @@ public interface AssetOrBuilder * * *
-   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
-   * represented as a list of relative resource names. Ancestry path starts with
-   * the closest CRM ancestor and ends at root. If the asset is a CRM
-   * project/folder/organization, this starts from the asset itself.
-   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * The ancestry path of an asset in Google Cloud [resource
+   * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
+   * represented as a list of relative resource names. An ancestry path starts
+   * with the closest ancestor in the hierarchy and ends at root. If the asset
+   * is a project, folder, or organization, the ancestry path starts from the
+   * asset itself.
+   * For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
    * 
* * repeated string ancestors = 10; @@ -220,4 +370,6 @@ public interface AssetOrBuilder * @return The bytes of the ancestors at the given index. */ com.google.protobuf.ByteString getAncestorsBytes(int index); + + public com.google.cloud.asset.v1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); } diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java index ce60256e4..431a8c286 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -54,36 +54,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\"google/cloud/asset/v1/assets.proto\022\025go" + "ogle.cloud.asset.v1\032\031google/api/resource" - + ".proto\032\032google/iam/v1/policy.proto\032\031goog" - + "le/protobuf/any.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\032\034google/api/annotations.proto\"\200\001\n\rT" - + "emporalAsset\0221\n\006window\030\001 \001(\0132!.google.cl" - + "oud.asset.v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010" - + "\022+\n\005asset\030\003 \001(\0132\034.google.cloud.asset.v1." - + "Asset\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132" - + "\032.google.protobuf.Timestamp\022,\n\010end_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\"\303\001\n\005As" - + "set\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0221\n" - + "\010resource\030\003 \001(\0132\037.google.cloud.asset.v1." - + "Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.ia" - + "m.v1.Policy\022\021\n\tancestors\030\n \003(\t:\'\352A$\n\037clo" - + "udasset.googleapis.com/Asset\022\001*\"\240\001\n\010Reso" - + "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" - + "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" - + "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" - + "ata\030\006 \001(\0132\027.google.protobuf.StructB\230\001\n\031c" - + "om.google.cloud.asset.v1B\nAssetProtoP\001Z:" - + "google.golang.org/genproto/googleapis/cl" - + "oud/asset/v1;asset\370\001\001\252\002\025Google.Cloud.Ass" - + "et.V1\312\002\025Google\\Cloud\\Asset\\V1b\006proto3" + + ".proto\032)google/cloud/orgpolicy/v1/orgpol" + + "icy.proto\032\032google/iam/v1/policy.proto\032:g" + + "oogle/identity/accesscontextmanager/v1/a" + + "ccess_level.proto\032;google/identity/acces" + + "scontextmanager/v1/access_policy.proto\032?" + + "google/identity/accesscontextmanager/v1/" + + "service_perimeter.proto\032\031google/protobuf" + + "/any.proto\032\034google/protobuf/struct.proto" + + "\032\037google/protobuf/timestamp.proto\032\034googl" + + "e/api/annotations.proto\"\200\001\n\rTemporalAsse" + + "t\0221\n\006window\030\001 \001(\0132!.google.cloud.asset.v" + + "1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n\005asset\030\003" + + " \001(\0132\034.google.cloud.asset.v1.Asset\"j\n\nTi" + + "meWindow\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\"\211\004\n\005Asset\022\014\n\004name" + + "\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0221\n\010resource\030\003" + + " \001(\0132\037.google.cloud.asset.v1.Resource\022)\n" + + "\niam_policy\030\004 \001(\0132\025.google.iam.v1.Policy" + + "\0225\n\norg_policy\030\006 \003(\0132!.google.cloud.orgp" + + "olicy.v1.Policy\022N\n\raccess_policy\030\007 \001(\01325" + + ".google.identity.accesscontextmanager.v1" + + ".AccessPolicyH\000\022L\n\014access_level\030\010 \001(\01324." + + "google.identity.accesscontextmanager.v1." + + "AccessLevelH\000\022V\n\021service_perimeter\030\t \001(\013" + + "29.google.identity.accesscontextmanager." + + "v1.ServicePerimeterH\000\022\021\n\tancestors\030\n \003(\t" + + ":\'\352A$\n\037cloudasset.googleapis.com/Asset\022\001" + + "*B\027\n\025access_context_policy\"\240\001\n\010Resource\022" + + "\017\n\007version\030\001 \001(\t\022\036\n\026discovery_document_u" + + "ri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014reso" + + "urce_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006" + + " \001(\0132\027.google.protobuf.StructB\230\001\n\031com.go" + + "ogle.cloud.asset.v1B\nAssetProtoP\001Z:googl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "sset/v1;asset\370\001\001\252\002\025Google.Cloud.Asset.V1" + + "\312\002\025Google\\Cloud\\Asset\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -111,7 +129,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_Asset_descriptor, new java.lang.String[] { - "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", + "Name", + "AssetType", + "Resource", + "IamPolicy", + "OrgPolicy", + "AccessPolicy", + "AccessLevel", + "ServicePerimeter", + "Ancestors", + "AccessContextPolicy", }); internal_static_google_cloud_asset_v1_Resource_descriptor = getDescriptor().getMessageTypes().get(3); @@ -127,7 +154,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java index 2cad2767d..aeeca1f2c 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -108,94 +108,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t/v1/assets.proto\032#google/longrunning/op" + "erations.proto\032\033google/protobuf/empty.pr" + "oto\032 google/protobuf/field_mask.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\215\002\n\023Expor" - + "tAssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037" - + "cloudasset.googleapis.com/Asset\022-\n\tread_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023" - + "\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004 \001(" - + "\0162\".google.cloud.asset.v1.ContentType\022?\n" - + "\routput_config\030\005 \001(\0132#.google.cloud.asse" - + "t.v1.OutputConfigB\003\340A\002\"\201\001\n\024ExportAssetsR" - + "esponse\022-\n\tread_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022:\n\routput_config\030\002 \001(\0132#." - + "google.cloud.asset.v1.OutputConfig\"\355\001\n\034B" - + "atchGetAssetsHistoryRequest\0227\n\006parent\030\001 " - + "\001(\tB\'\340A\002\372A!\022\037cloudasset.googleapis.com/A" - + "sset\022\023\n\013asset_names\030\002 \003(\t\022=\n\014content_typ" - + "e\030\003 \001(\0162\".google.cloud.asset.v1.ContentT" - + "ypeB\003\340A\001\022@\n\020read_time_window\030\004 \001(\0132!.goo" - + "gle.cloud.asset.v1.TimeWindowB\003\340A\001\"U\n\035Ba" - + "tchGetAssetsHistoryResponse\0224\n\006assets\030\001 " - + "\003(\0132$.google.cloud.asset.v1.TemporalAsse" - + "t\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001 \001(\tB\003" - + "\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030\003 \001(\0132" - + "\033.google.cloud.asset.v1.FeedB\003\340A\002\"F\n\016Get" - + "FeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloud" - + "asset.googleapis.com/Feed\"\'\n\020ListFeedsRe" - + "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021ListFeedsR" - + "esponse\022*\n\005feeds\030\001 \003(\0132\033.google.cloud.as" - + "set.v1.Feed\"y\n\021UpdateFeedRequest\022.\n\004feed" - + "\030\001 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n\004n" + + "oogle/protobuf/timestamp.proto\032\026google/t" + + "ype/expr.proto\"\215\002\n\023ExportAssetsRequest\0227" + + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.googl" + + "eapis.com/Asset\022-\n\tread_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\023\n\013asset_types\030\003 " + + "\003(\t\0228\n\014content_type\030\004 \001(\0162\".google.cloud" + + ".asset.v1.ContentType\022?\n\routput_config\030\005" + + " \001(\0132#.google.cloud.asset.v1.OutputConfi" + + "gB\003\340A\002\"\201\001\n\024ExportAssetsResponse\022-\n\tread_" + + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022:" + + "\n\routput_config\030\002 \001(\0132#.google.cloud.ass" + + "et.v1.OutputConfig\"\355\001\n\034BatchGetAssetsHis" + + "toryRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037clo" + + "udasset.googleapis.com/Asset\022\023\n\013asset_na" + + "mes\030\002 \003(\t\022=\n\014content_type\030\003 \001(\0162\".google" + + ".cloud.asset.v1.ContentTypeB\003\340A\001\022@\n\020read" + + "_time_window\030\004 \001(\0132!.google.cloud.asset." + + "v1.TimeWindowB\003\340A\001\"U\n\035BatchGetAssetsHist" + + "oryResponse\0224\n\006assets\030\001 \003(\0132$.google.clo" + + "ud.asset.v1.TemporalAsset\"n\n\021CreateFeedR" + + "equest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002" + + " \001(\tB\003\340A\002\022.\n\004feed\030\003 \001(\0132\033.google.cloud.a" + + "sset.v1.FeedB\003\340A\002\"F\n\016GetFeedRequest\0224\n\004n" + "ame\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleapis" - + ".com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_destin" - + "ation\030\001 \001(\0132%.google.cloud.asset.v1.GcsD" - + "estinationH\000\022J\n\024bigquery_destination\030\002 \001" - + "(\0132*.google.cloud.asset.v1.BigQueryDesti" - + "nationH\000B\r\n\013destination\"C\n\016GcsDestinatio" - + "n\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B\014" - + "\n\nobject_uri\"N\n\023BigQueryDestination\022\024\n\007d" - + "ataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\r\n" - + "\005force\030\003 \001(\010\"\"\n\021PubsubDestination\022\r\n\005top" - + "ic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub_d" - + "estination\030\001 \001(\0132(.google.cloud.asset.v1" - + ".PubsubDestinationH\000B\r\n\013destination\"\333\002\n\004" - + "Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002" - + " \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_typ" - + "e\030\004 \001(\0162\".google.cloud.asset.v1.ContentT" - + "ype\022H\n\022feed_output_config\030\005 \001(\0132\'.google" - + ".cloud.asset.v1.FeedOutputConfigB\003\340A\002:\221\001" - + "\352A\215\001\n\036cloudasset.googleapis.com/Feed\022\037pr" - + "ojects/{project}/feeds/{feed}\022\035folders/{" - + "folder}/feeds/{feed}\022)organizations/{org" - + "anization}/feeds/{feed} \001*l\n\013ContentType" - + "\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOUR" - + "CE\020\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\r" - + "ACCESS_POLICY\020\0052\360\010\n\014AssetService\022\336\001\n\014Exp" - + "ortAssets\022*.google.cloud.asset.v1.Export" - + "AssetsRequest\032\035.google.longrunning.Opera" - + "tion\"\202\001\202\323\344\223\002\"\"\035/v1/{parent=*/*}:exportAs" - + "sets:\001*\312AW\n*google.cloud.asset.v1.Export" - + "AssetsResponse\022)google.cloud.asset.v1.Ex" - + "portAssetsRequest\022\262\001\n\025BatchGetAssetsHist" - + "ory\0223.google.cloud.asset.v1.BatchGetAsse" - + "tsHistoryRequest\0324.google.cloud.asset.v1" - + ".BatchGetAssetsHistoryResponse\".\202\323\344\223\002(\022&" - + "/v1/{parent=*/*}:batchGetAssetsHistory\022\177" - + "\n\nCreateFeed\022(.google.cloud.asset.v1.Cre" - + "ateFeedRequest\032\033.google.cloud.asset.v1.F" - + "eed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:\001*\332A" - + "\006parent\022t\n\007GetFeed\022%.google.cloud.asset." - + "v1.GetFeedRequest\032\033.google.cloud.asset.v" - + "1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/*}\332A" - + "\004name\022\207\001\n\tListFeeds\022\'.google.cloud.asset" - + ".v1.ListFeedsRequest\032(.google.cloud.asse" - + "t.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/{par" - + "ent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFeed\022(" - + ".google.cloud.asset.v1.UpdateFeedRequest" - + "\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002 2\033/" - + "v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed\022u\n\n" - + "DeleteFeed\022(.google.cloud.asset.v1.Delet" - + "eFeedRequest\032\026.google.protobuf.Empty\"%\202\323" - + "\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\032M\312A\031" - + "cloudasset.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\234\001\n\031c" - + "om.google.cloud.asset.v1B\021AssetServicePr" - + "otoP\001Z:google.golang.org/genproto/google" - + "apis/cloud/asset/v1;asset\252\002\025Google.Cloud" - + ".Asset.V1\312\002\025Google\\Cloud\\Asset\\V1b\006proto" - + "3" + + ".com/Feed\"\'\n\020ListFeedsRequest\022\023\n\006parent\030" + + "\001 \001(\tB\003\340A\002\"?\n\021ListFeedsResponse\022*\n\005feeds" + + "\030\001 \003(\0132\033.google.cloud.asset.v1.Feed\"y\n\021U" + + "pdateFeedRequest\022.\n\004feed\030\001 \001(\0132\033.google." + + "cloud.asset.v1.FeedB\003\340A\002\0224\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"I" + + "\n\021DeleteFeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" + + " \n\036cloudasset.googleapis.com/Feed\"\253\001\n\014Ou" + + "tputConfig\022@\n\017gcs_destination\030\001 \001(\0132%.go" + + "ogle.cloud.asset.v1.GcsDestinationH\000\022J\n\024" + + "bigquery_destination\030\002 \001(\0132*.google.clou" + + "d.asset.v1.BigQueryDestinationH\000B\r\n\013dest" + + "ination\"C\n\016GcsDestination\022\r\n\003uri\030\001 \001(\tH\000" + + "\022\024\n\nuri_prefix\030\002 \001(\tH\000B\014\n\nobject_uri\"N\n\023" + + "BigQueryDestination\022\024\n\007dataset\030\001 \001(\tB\003\340A" + + "\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"\"\n\021" + + "PubsubDestination\022\r\n\005topic\030\001 \001(\t\"i\n\020Feed" + + "OutputConfig\022F\n\022pubsub_destination\030\001 \001(\013" + + "2(.google.cloud.asset.v1.PubsubDestinati" + + "onH\000B\r\n\013destination\"\333\002\n\004Feed\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(\t\022\023\n\013asset_ty" + + "pes\030\003 \003(\t\0228\n\014content_type\030\004 \001(\0162\".google" + + ".cloud.asset.v1.ContentType\022H\n\022feed_outp" + + "ut_config\030\005 \001(\0132\'.google.cloud.asset.v1." + + "FeedOutputConfigB\003\340A\002:\221\001\352A\215\001\n\036cloudasset" + + ".googleapis.com/Feed\022\037projects/{project}" + + "/feeds/{feed}\022\035folders/{folder}/feeds/{f" + + "eed}\022)organizations/{organization}/feeds" + + "/{feed} \001*l\n\013ContentType\022\034\n\030CONTENT_TYPE" + + "_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLI" + + "CY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052" + + "\360\010\n\014AssetService\022\336\001\n\014ExportAssets\022*.goog" + + "le.cloud.asset.v1.ExportAssetsRequest\032\035." + + "google.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/" + + "v1/{parent=*/*}:exportAssets:\001*\312AW\n*goog" + + "le.cloud.asset.v1.ExportAssetsResponse\022)" + + "google.cloud.asset.v1.ExportAssetsReques" + + "t\022\262\001\n\025BatchGetAssetsHistory\0223.google.clo" + + "ud.asset.v1.BatchGetAssetsHistoryRequest" + + "\0324.google.cloud.asset.v1.BatchGetAssetsH" + + "istoryResponse\".\202\323\344\223\002(\022&/v1/{parent=*/*}" + + ":batchGetAssetsHistory\022\177\n\nCreateFeed\022(.g" + + "oogle.cloud.asset.v1.CreateFeedRequest\032\033" + + ".google.cloud.asset.v1.Feed\"*\202\323\344\223\002\033\"\026/v1" + + "/{parent=*/*}/feeds:\001*\332A\006parent\022t\n\007GetFe" + + "ed\022%.google.cloud.asset.v1.GetFeedReques" + + "t\032\033.google.cloud.asset.v1.Feed\"%\202\323\344\223\002\030\022\026" + + "/v1/{name=*/*/feeds/*}\332A\004name\022\207\001\n\tListFe" + + "eds\022\'.google.cloud.asset.v1.ListFeedsReq" + + "uest\032(.google.cloud.asset.v1.ListFeedsRe" + + "sponse\"\'\202\323\344\223\002\030\022\026/v1/{parent=*/*}/feeds\332A" + + "\006parent\022\202\001\n\nUpdateFeed\022(.google.cloud.as" + + "set.v1.UpdateFeedRequest\032\033.google.cloud." + + "asset.v1.Feed\"-\202\323\344\223\002 2\033/v1/{feed.name=*/" + + "*/feeds/*}:\001*\332A\004feed\022u\n\nDeleteFeed\022(.goo" + + "gle.cloud.asset.v1.DeleteFeedRequest\032\026.g" + + "oogle.protobuf.Empty\"%\202\323\344\223\002\030*\026/v1/{name=" + + "*/*/feeds/*}\332A\004name\032M\312A\031cloudasset.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\234\001\n\031com.google.cloud." + + "asset.v1B\021AssetServiceProtoP\001Z:google.go" + + "lang.org/genproto/googleapis/cloud/asset" + + "/v1;asset\252\002\025Google.Cloud.Asset.V1\312\002\025Goog" + + "le\\Cloud\\Asset\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -210,6 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), }); internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -360,6 +361,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java index d14f88daa..ba33a2764 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java @@ -343,11 +343,11 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * @@ -364,11 +364,11 @@ public boolean hasReadTimeWindow() { * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * @@ -387,11 +387,11 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * @@ -1277,11 +1277,11 @@ public Builder clearContentType() { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1298,11 +1298,11 @@ public boolean hasReadTimeWindow() { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1325,11 +1325,11 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1354,11 +1354,11 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1380,11 +1380,11 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder bu * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1413,11 +1413,11 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1440,11 +1440,11 @@ public Builder clearReadTimeWindow() { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1461,11 +1461,11 @@ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * @@ -1486,11 +1486,11 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( * *
      * Optional. The time window for the asset history. Both start_time and
-     * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-     * end_time is not set, it is default to current timestamp. If start_time is
-     * not set, the snapshot of the assets at end_time will be returned. The
-     * returned results contain all temporal assets whose time window overlap with
-     * read_time_window.
+     * end_time are optional and if set, it must be after the current time minus
+     * 35 days. If end_time is not set, it is default to current timestamp.
+     * If start_time is not set, the snapshot of the assets at end_time will be
+     * returned. The returned results contain all temporal assets whose time
+     * window overlap with read_time_window.
      * 
* * diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java index 117a02848..6f0b38278 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -173,11 +173,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * @@ -192,11 +192,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * @@ -211,11 +211,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * *
    * Optional. The time window for the asset history. Both start_time and
-   * end_time are optional and if set, it must be after 2018-10-02 UTC. If
-   * end_time is not set, it is default to current timestamp. If start_time is
-   * not set, the snapshot of the assets at end_time will be returned. The
-   * returned results contain all temporal assets whose time window overlap with
-   * read_time_window.
+   * end_time are optional and if set, it must be after the current time minus
+   * 35 days. If end_time is not set, it is default to current timestamp.
+   * If start_time is not set, the snapshot of the assets at end_time will be
+   * returned. The returned results contain all temporal assets whose time
+   * window overlap with read_time_window.
    * 
* * diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java index b0b814bf7..986b0f650 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java @@ -133,7 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -158,7 +158,7 @@ public java.lang.String getDataset() { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -236,8 +236,8 @@ public com.google.protobuf.ByteString getTableBytes() { *
    * If the destination table already exists and this flag is `TRUE`, the
    * table will be overwritten by the contents of assets snapshot. If the flag
-   * is not set and the destination table already exists, the export call
-   * returns an error.
+   * is `FALSE` or unset and the destination table already exists, the export
+   * call returns an INVALID_ARGUMEMT error.
    * 
* * bool force = 3; @@ -603,7 +603,7 @@ public Builder mergeFrom( * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -628,7 +628,7 @@ public java.lang.String getDataset() { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -653,7 +653,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -677,7 +677,7 @@ public Builder setDataset(java.lang.String value) { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -697,7 +697,7 @@ public Builder clearDataset() { * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -839,8 +839,8 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { *
      * If the destination table already exists and this flag is `TRUE`, the
      * table will be overwritten by the contents of assets snapshot. If the flag
-     * is not set and the destination table already exists, the export call
-     * returns an error.
+     * is `FALSE` or unset and the destination table already exists, the export
+     * call returns an INVALID_ARGUMEMT error.
      * 
* * bool force = 3; @@ -856,8 +856,8 @@ public boolean getForce() { *
      * If the destination table already exists and this flag is `TRUE`, the
      * table will be overwritten by the contents of assets snapshot. If the flag
-     * is not set and the destination table already exists, the export call
-     * returns an error.
+     * is `FALSE` or unset and the destination table already exists, the export
+     * call returns an INVALID_ARGUMEMT error.
      * 
* * bool force = 3; @@ -877,8 +877,8 @@ public Builder setForce(boolean value) { *
      * If the destination table already exists and this flag is `TRUE`, the
      * table will be overwritten by the contents of assets snapshot. If the flag
-     * is not set and the destination table already exists, the export call
-     * returns an error.
+     * is `FALSE` or unset and the destination table already exists, the export
+     * call returns an INVALID_ARGUMEMT error.
      * 
* * bool force = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java index bb73ad259..7be437e5f 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java @@ -30,7 +30,7 @@ public interface BigQueryDestinationOrBuilder * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,7 +45,7 @@ public interface BigQueryDestinationOrBuilder * Required. The BigQuery dataset in format * "projects/projectId/datasets/datasetId", to which the snapshot result * should be exported. If this dataset does not exist, the export call returns - * an error. + * an INVALID_ARGUMENT error. * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -89,8 +89,8 @@ public interface BigQueryDestinationOrBuilder *
    * If the destination table already exists and this flag is `TRUE`, the
    * table will be overwritten by the contents of assets snapshot. If the flag
-   * is not set and the destination table already exists, the export call
-   * returns an error.
+   * is `FALSE` or unset and the destination table already exists, the export
+   * call returns an INVALID_ARGUMEMT error.
    * 
* * bool force = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java index c97be1739..73a9a3566 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java @@ -229,10 +229,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; @@ -247,10 +247,10 @@ public boolean hasReadTime() { * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; @@ -265,10 +265,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1011,10 +1011,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1029,10 +1029,10 @@ public boolean hasReadTime() { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1051,10 +1051,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1077,10 +1077,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1100,10 +1100,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1128,10 +1128,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1152,10 +1152,10 @@ public Builder clearReadTime() { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1170,10 +1170,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1190,10 +1190,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Timestamp to take an asset snapshot. This can only be set to a timestamp
-     * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-     * the current time will be used. Due to delays in resource data collection
-     * and indexing, there is a volatile window during which running the same
-     * query may get different results.
+     * between the current time and the current time minus 35 days (inclusive).
+     * If not specified, the current time will be used. Due to delays in resource
+     * data collection and indexing, there is a volatile window during which
+     * running the same query may get different results.
      * 
* * .google.protobuf.Timestamp read_time = 2; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index d8147e30f..aefed15e1 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -63,10 +63,10 @@ public interface ExportAssetsRequestOrBuilder * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; @@ -79,10 +79,10 @@ public interface ExportAssetsRequestOrBuilder * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; @@ -95,10 +95,10 @@ public interface ExportAssetsRequestOrBuilder * *
    * Timestamp to take an asset snapshot. This can only be set to a timestamp
-   * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
-   * the current time will be used. Due to delays in resource data collection
-   * and indexing, there is a volatile window during which running the same
-   * query may get different results.
+   * between the current time and the current time minus 35 days (inclusive).
+   * If not specified, the current time will be used. Due to delays in resource
+   * data collection and indexing, there is a volatile window during which
+   * running the same query may get different results.
    * 
* * .google.protobuf.Timestamp read_time = 2; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java index 6827d35aa..ac7c54e6c 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java @@ -26,7 +26,7 @@ * An asset feed filter controls what updates are exported. * The asset feed must be created within a project, organization, or * folder. Supported destinations are: - * Cloud Pub/Sub topics. + * Pub/Sub topics. * * * Protobuf type {@code google.cloud.asset.v1.Feed} @@ -322,10 +322,10 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -342,10 +342,10 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -362,10 +362,10 @@ public int getAssetTypesCount() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -383,10 +383,10 @@ public java.lang.String getAssetTypes(int index) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -710,7 +710,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * An asset feed filter controls what updates are exported. * The asset feed must be created within a project, organization, or * folder. Supported destinations are: - * Cloud Pub/Sub topics. + * Pub/Sub topics. * * * Protobuf type {@code google.cloud.asset.v1.Feed} @@ -1296,10 +1296,10 @@ private void ensureAssetTypesIsMutable() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1316,10 +1316,10 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1336,10 +1336,10 @@ public int getAssetTypesCount() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1357,10 +1357,10 @@ public java.lang.String getAssetTypes(int index) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1378,10 +1378,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1406,10 +1406,10 @@ public Builder setAssetTypes(int index, java.lang.String value) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1433,10 +1433,10 @@ public Builder addAssetTypes(java.lang.String value) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1457,10 +1457,10 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -1480,10 +1480,10 @@ public Builder clearAssetTypes() { * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java index c8c938361..700f632b5 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java @@ -144,10 +144,10 @@ public interface FeedOrBuilder * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -162,10 +162,10 @@ public interface FeedOrBuilder * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -180,10 +180,10 @@ public interface FeedOrBuilder * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; @@ -199,10 +199,10 @@ public interface FeedOrBuilder * A list of types of the assets to receive updates. You must specify either * or both of asset_names and asset_types. Only asset updates matching * specified asset_names and asset_types are exported to the feed. - * For example: - * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - * for all supported asset types. + * For example: `"compute.googleapis.com/Disk"` + * See [this + * topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + * for a list of all supported asset types. * * * repeated string asset_types = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java index baa2f8777..94e2ebe73 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java @@ -168,7 +168,7 @@ public DestinationCase getDestinationCase() { * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -182,7 +182,7 @@ public boolean hasPubsubDestination() { * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -199,7 +199,7 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -579,7 +579,7 @@ public Builder clearDestination() { * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -593,7 +593,7 @@ public boolean hasPubsubDestination() { * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -617,7 +617,7 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -639,7 +639,7 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1.PubsubDestination * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -659,7 +659,7 @@ public Builder setPubsubDestination( * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -690,7 +690,7 @@ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestinatio * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -715,7 +715,7 @@ public Builder clearPubsubDestination() { * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -727,7 +727,7 @@ public com.google.cloud.asset.v1.PubsubDestination.Builder getPubsubDestinationB * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -746,7 +746,7 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination * * *
-     * Destination on Cloud Pubsub.
+     * Destination on Pub/Sub.
      * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java index 34825d5aa..4d58fa3e4 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java @@ -27,7 +27,7 @@ public interface FeedOutputConfigOrBuilder * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -39,7 +39,7 @@ public interface FeedOutputConfigOrBuilder * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; @@ -51,7 +51,7 @@ public interface FeedOutputConfigOrBuilder * * *
-   * Destination on Cloud Pubsub.
+   * Destination on Pub/Sub.
    * 
* * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java index 9dd5148dd..401363190 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java @@ -22,7 +22,7 @@ * * *
- * A Cloud Pubsub destination.
+ * A Pub/Sub destination.
  * 
* * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} @@ -117,7 +117,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the Cloud Pub/Sub topic to publish to.
+   * The name of the Pub/Sub topic to publish to.
    * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
    * 
* @@ -140,7 +140,7 @@ public java.lang.String getTopic() { * * *
-   * The name of the Cloud Pub/Sub topic to publish to.
+   * The name of the Pub/Sub topic to publish to.
    * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
    * 
* @@ -323,7 +323,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A Cloud Pubsub destination.
+   * A Pub/Sub destination.
    * 
* * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} @@ -481,7 +481,7 @@ public Builder mergeFrom( * * *
-     * The name of the Cloud Pub/Sub topic to publish to.
+     * The name of the Pub/Sub topic to publish to.
      * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
      * 
* @@ -504,7 +504,7 @@ public java.lang.String getTopic() { * * *
-     * The name of the Cloud Pub/Sub topic to publish to.
+     * The name of the Pub/Sub topic to publish to.
      * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
      * 
* @@ -527,7 +527,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-     * The name of the Cloud Pub/Sub topic to publish to.
+     * The name of the Pub/Sub topic to publish to.
      * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
      * 
* @@ -549,7 +549,7 @@ public Builder setTopic(java.lang.String value) { * * *
-     * The name of the Cloud Pub/Sub topic to publish to.
+     * The name of the Pub/Sub topic to publish to.
      * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
      * 
* @@ -567,7 +567,7 @@ public Builder clearTopic() { * * *
-     * The name of the Cloud Pub/Sub topic to publish to.
+     * The name of the Pub/Sub topic to publish to.
      * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
      * 
* diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java index d5a66f431..36c5ca8bd 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java @@ -27,7 +27,7 @@ public interface PubsubDestinationOrBuilder * * *
-   * The name of the Cloud Pub/Sub topic to publish to.
+   * The name of the Pub/Sub topic to publish to.
    * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
    * 
* @@ -40,7 +40,7 @@ public interface PubsubDestinationOrBuilder * * *
-   * The name of the Cloud Pub/Sub topic to publish to.
+   * The name of the Pub/Sub topic to publish to.
    * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
    * 
* diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java index ffd8566f4..9474231b7 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java @@ -22,7 +22,7 @@ * * *
- * Representation of a cloud resource.
+ * A representation of a Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.asset.v1.Resource} @@ -163,7 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The API version. Example: "v1".
+   * The API version. For example: "v1"
    * 
* * string version = 1; @@ -185,7 +185,7 @@ public java.lang.String getVersion() { * * *
-   * The API version. Example: "v1".
+   * The API version. For example: "v1"
    * 
* * string version = 1; @@ -212,9 +212,9 @@ public com.google.protobuf.ByteString getVersionBytes() { *
    * The URL of the discovery document containing the resource's JSON schema.
    * For example:
-   * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-   * It will be left unspecified for resources without a discovery-based API,
-   * such as Cloud Bigtable.
+   * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_document_uri = 2; @@ -238,9 +238,9 @@ public java.lang.String getDiscoveryDocumentUri() { *
    * The URL of the discovery document containing the resource's JSON schema.
    * For example:
-   * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-   * It will be left unspecified for resources without a discovery-based API,
-   * such as Cloud Bigtable.
+   * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_document_uri = 2; @@ -265,9 +265,10 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * *
-   * The JSON schema name listed in the discovery document.
-   * Example: "Project". It will be left unspecified for resources (such as
-   * Cloud Bigtable) without a discovery-based API.
+   * The JSON schema name listed in the discovery document. For example:
+   * "Project"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; @@ -289,9 +290,10 @@ public java.lang.String getDiscoveryName() { * * *
-   * The JSON schema name listed in the discovery document.
-   * Example: "Project". It will be left unspecified for resources (such as
-   * Cloud Bigtable) without a discovery-based API.
+   * The JSON schema name listed in the discovery document. For example:
+   * "Project"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; @@ -316,11 +318,10 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * *
-   * The REST URL for accessing the resource. An HTTP GET operation using this
-   * URL returns the resource itself.
-   * Example:
-   * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-   * It will be left unspecified for resources without a REST API.
+   * The REST URL for accessing the resource. An HTTP `GET` request using this
+   * URL returns the resource itself. For example:
+   * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+   * This value is unspecified for resources without a REST API.
    * 
* * string resource_url = 4; @@ -342,11 +343,10 @@ public java.lang.String getResourceUrl() { * * *
-   * The REST URL for accessing the resource. An HTTP GET operation using this
-   * URL returns the resource itself.
-   * Example:
-   * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-   * It will be left unspecified for resources without a REST API.
+   * The REST URL for accessing the resource. An HTTP `GET` request using this
+   * URL returns the resource itself. For example:
+   * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+   * This value is unspecified for resources without a REST API.
    * 
* * string resource_url = 4; @@ -375,11 +375,12 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -405,11 +406,12 @@ public java.lang.String getParent() { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -434,8 +436,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; @@ -449,8 +451,8 @@ public boolean hasData() { * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; @@ -464,8 +466,8 @@ public com.google.protobuf.Struct getData() { * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; @@ -685,7 +687,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Representation of a cloud resource.
+   * A representation of a Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.asset.v1.Resource} @@ -884,7 +886,7 @@ public Builder mergeFrom( * * *
-     * The API version. Example: "v1".
+     * The API version. For example: "v1"
      * 
* * string version = 1; @@ -906,7 +908,7 @@ public java.lang.String getVersion() { * * *
-     * The API version. Example: "v1".
+     * The API version. For example: "v1"
      * 
* * string version = 1; @@ -928,7 +930,7 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-     * The API version. Example: "v1".
+     * The API version. For example: "v1"
      * 
* * string version = 1; @@ -949,7 +951,7 @@ public Builder setVersion(java.lang.String value) { * * *
-     * The API version. Example: "v1".
+     * The API version. For example: "v1"
      * 
* * string version = 1; @@ -966,7 +968,7 @@ public Builder clearVersion() { * * *
-     * The API version. Example: "v1".
+     * The API version. For example: "v1"
      * 
* * string version = 1; @@ -992,9 +994,9 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
-     * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-     * It will be left unspecified for resources without a discovery-based API,
-     * such as Cloud Bigtable.
+     * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_document_uri = 2; @@ -1018,9 +1020,9 @@ public java.lang.String getDiscoveryDocumentUri() { *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
-     * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-     * It will be left unspecified for resources without a discovery-based API,
-     * such as Cloud Bigtable.
+     * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_document_uri = 2; @@ -1044,9 +1046,9 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
-     * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-     * It will be left unspecified for resources without a discovery-based API,
-     * such as Cloud Bigtable.
+     * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_document_uri = 2; @@ -1069,9 +1071,9 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) { *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
-     * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-     * It will be left unspecified for resources without a discovery-based API,
-     * such as Cloud Bigtable.
+     * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_document_uri = 2; @@ -1090,9 +1092,9 @@ public Builder clearDiscoveryDocumentUri() { *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
-     * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-     * It will be left unspecified for resources without a discovery-based API,
-     * such as Cloud Bigtable.
+     * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_document_uri = 2; @@ -1116,9 +1118,10 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value * * *
-     * The JSON schema name listed in the discovery document.
-     * Example: "Project". It will be left unspecified for resources (such as
-     * Cloud Bigtable) without a discovery-based API.
+     * The JSON schema name listed in the discovery document. For example:
+     * "Project"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_name = 3; @@ -1140,9 +1143,10 @@ public java.lang.String getDiscoveryName() { * * *
-     * The JSON schema name listed in the discovery document.
-     * Example: "Project". It will be left unspecified for resources (such as
-     * Cloud Bigtable) without a discovery-based API.
+     * The JSON schema name listed in the discovery document. For example:
+     * "Project"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_name = 3; @@ -1164,9 +1168,10 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * *
-     * The JSON schema name listed in the discovery document.
-     * Example: "Project". It will be left unspecified for resources (such as
-     * Cloud Bigtable) without a discovery-based API.
+     * The JSON schema name listed in the discovery document. For example:
+     * "Project"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_name = 3; @@ -1187,9 +1192,10 @@ public Builder setDiscoveryName(java.lang.String value) { * * *
-     * The JSON schema name listed in the discovery document.
-     * Example: "Project". It will be left unspecified for resources (such as
-     * Cloud Bigtable) without a discovery-based API.
+     * The JSON schema name listed in the discovery document. For example:
+     * "Project"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_name = 3; @@ -1206,9 +1212,10 @@ public Builder clearDiscoveryName() { * * *
-     * The JSON schema name listed in the discovery document.
-     * Example: "Project". It will be left unspecified for resources (such as
-     * Cloud Bigtable) without a discovery-based API.
+     * The JSON schema name listed in the discovery document. For example:
+     * "Project"
+     * This value is unspecified for resources that do not have an API based on a
+     * discovery document, such as Cloud Bigtable.
      * 
* * string discovery_name = 3; @@ -1232,11 +1239,10 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The REST URL for accessing the resource. An HTTP GET operation using this
-     * URL returns the resource itself.
-     * Example:
-     * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-     * It will be left unspecified for resources without a REST API.
+     * The REST URL for accessing the resource. An HTTP `GET` request using this
+     * URL returns the resource itself. For example:
+     * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+     * This value is unspecified for resources without a REST API.
      * 
* * string resource_url = 4; @@ -1258,11 +1264,10 @@ public java.lang.String getResourceUrl() { * * *
-     * The REST URL for accessing the resource. An HTTP GET operation using this
-     * URL returns the resource itself.
-     * Example:
-     * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-     * It will be left unspecified for resources without a REST API.
+     * The REST URL for accessing the resource. An HTTP `GET` request using this
+     * URL returns the resource itself. For example:
+     * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+     * This value is unspecified for resources without a REST API.
      * 
* * string resource_url = 4; @@ -1284,11 +1289,10 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * *
-     * The REST URL for accessing the resource. An HTTP GET operation using this
-     * URL returns the resource itself.
-     * Example:
-     * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-     * It will be left unspecified for resources without a REST API.
+     * The REST URL for accessing the resource. An HTTP `GET` request using this
+     * URL returns the resource itself. For example:
+     * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+     * This value is unspecified for resources without a REST API.
      * 
* * string resource_url = 4; @@ -1309,11 +1313,10 @@ public Builder setResourceUrl(java.lang.String value) { * * *
-     * The REST URL for accessing the resource. An HTTP GET operation using this
-     * URL returns the resource itself.
-     * Example:
-     * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-     * It will be left unspecified for resources without a REST API.
+     * The REST URL for accessing the resource. An HTTP `GET` request using this
+     * URL returns the resource itself. For example:
+     * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+     * This value is unspecified for resources without a REST API.
      * 
* * string resource_url = 4; @@ -1330,11 +1333,10 @@ public Builder clearResourceUrl() { * * *
-     * The REST URL for accessing the resource. An HTTP GET operation using this
-     * URL returns the resource itself.
-     * Example:
-     * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-     * It will be left unspecified for resources without a REST API.
+     * The REST URL for accessing the resource. An HTTP `GET` request using this
+     * URL returns the resource itself. For example:
+     * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+     * This value is unspecified for resources without a REST API.
      * 
* * string resource_url = 4; @@ -1362,11 +1364,12 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -1392,11 +1395,12 @@ public java.lang.String getParent() { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -1422,11 +1426,12 @@ public com.google.protobuf.ByteString getParentBytes() { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -1451,11 +1456,12 @@ public Builder setParent(java.lang.String value) { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -1476,11 +1482,12 @@ public Builder clearParent() { * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -1509,8 +1516,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1524,8 +1531,8 @@ public boolean hasData() { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1543,8 +1550,8 @@ public com.google.protobuf.Struct getData() { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1566,8 +1573,8 @@ public Builder setData(com.google.protobuf.Struct value) { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1586,8 +1593,8 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1610,8 +1617,8 @@ public Builder mergeData(com.google.protobuf.Struct value) { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1631,8 +1638,8 @@ public Builder clearData() { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1646,8 +1653,8 @@ public com.google.protobuf.Struct.Builder getDataBuilder() { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; @@ -1663,8 +1670,8 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { * * *
-     * The content of the resource, in which some sensitive fields are scrubbed
-     * away and may not be present.
+     * The content of the resource, in which some sensitive fields are removed
+     * and may not be present.
      * 
* * .google.protobuf.Struct data = 6; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java index 8945de0ce..41da2857f 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java @@ -27,7 +27,7 @@ public interface ResourceOrBuilder * * *
-   * The API version. Example: "v1".
+   * The API version. For example: "v1"
    * 
* * string version = 1; @@ -39,7 +39,7 @@ public interface ResourceOrBuilder * * *
-   * The API version. Example: "v1".
+   * The API version. For example: "v1"
    * 
* * string version = 1; @@ -54,9 +54,9 @@ public interface ResourceOrBuilder *
    * The URL of the discovery document containing the resource's JSON schema.
    * For example:
-   * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-   * It will be left unspecified for resources without a discovery-based API,
-   * such as Cloud Bigtable.
+   * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_document_uri = 2; @@ -70,9 +70,9 @@ public interface ResourceOrBuilder *
    * The URL of the discovery document containing the resource's JSON schema.
    * For example:
-   * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
-   * It will be left unspecified for resources without a discovery-based API,
-   * such as Cloud Bigtable.
+   * "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_document_uri = 2; @@ -85,9 +85,10 @@ public interface ResourceOrBuilder * * *
-   * The JSON schema name listed in the discovery document.
-   * Example: "Project". It will be left unspecified for resources (such as
-   * Cloud Bigtable) without a discovery-based API.
+   * The JSON schema name listed in the discovery document. For example:
+   * "Project"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; @@ -99,9 +100,10 @@ public interface ResourceOrBuilder * * *
-   * The JSON schema name listed in the discovery document.
-   * Example: "Project". It will be left unspecified for resources (such as
-   * Cloud Bigtable) without a discovery-based API.
+   * The JSON schema name listed in the discovery document. For example:
+   * "Project"
+   * This value is unspecified for resources that do not have an API based on a
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; @@ -114,11 +116,10 @@ public interface ResourceOrBuilder * * *
-   * The REST URL for accessing the resource. An HTTP GET operation using this
-   * URL returns the resource itself.
-   * Example:
-   * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-   * It will be left unspecified for resources without a REST API.
+   * The REST URL for accessing the resource. An HTTP `GET` request using this
+   * URL returns the resource itself. For example:
+   * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+   * This value is unspecified for resources without a REST API.
    * 
* * string resource_url = 4; @@ -130,11 +131,10 @@ public interface ResourceOrBuilder * * *
-   * The REST URL for accessing the resource. An HTTP GET operation using this
-   * URL returns the resource itself.
-   * Example:
-   * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
-   * It will be left unspecified for resources without a REST API.
+   * The REST URL for accessing the resource. An HTTP `GET` request using this
+   * URL returns the resource itself. For example:
+   * "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
+   * This value is unspecified for resources without a REST API.
    * 
* * string resource_url = 4; @@ -151,11 +151,12 @@ public interface ResourceOrBuilder * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -171,11 +172,12 @@ public interface ResourceOrBuilder * [Resource * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) * for more information. - * For GCP assets, it is the parent resource defined in the [Cloud IAM policy + * For Google Cloud assets, this value is the parent resource defined in the + * [Cloud IAM policy * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). * For example: - * `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. - * For third-party assets, it is up to the users to define. + * "//cloudresourcemanager.googleapis.com/projects/my_project_123" + * For third-party assets, this field may be set differently. * * * string parent = 5; @@ -188,8 +190,8 @@ public interface ResourceOrBuilder * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; @@ -201,8 +203,8 @@ public interface ResourceOrBuilder * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; @@ -214,8 +216,8 @@ public interface ResourceOrBuilder * * *
-   * The content of the resource, in which some sensitive fields are scrubbed
-   * away and may not be present.
+   * The content of the resource, in which some sensitive fields are removed
+   * and may not be present.
    * 
* * .google.protobuf.Struct data = 6; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java index 03fc40c87..81b856225 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java @@ -22,8 +22,8 @@ * * *
- * Temporal asset. In addition to the asset, the temporal asset includes the
- * status of the asset and valid from and to time of it.
+ * An asset in Google Cloud and its temporal metadata, including the time window
+ * when it was observed and its status during that window.
  * 
* * Protobuf type {@code google.cloud.asset.v1.TemporalAsset} @@ -188,7 +188,7 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * * *
-   * If the asset is deleted or not.
+   * Whether the asset has been deleted or not.
    * 
* * bool deleted = 2; @@ -205,7 +205,7 @@ public boolean getDeleted() { * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -219,7 +219,7 @@ public boolean hasAsset() { * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -233,7 +233,7 @@ public com.google.cloud.asset.v1.Asset getAsset() { * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -432,8 +432,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Temporal asset. In addition to the asset, the temporal asset includes the
-   * status of the asset and valid from and to time of it.
+   * An asset in Google Cloud and its temporal metadata, including the time window
+   * when it was observed and its status during that window.
    * 
* * Protobuf type {@code google.cloud.asset.v1.TemporalAsset} @@ -803,7 +803,7 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * * *
-     * If the asset is deleted or not.
+     * Whether the asset has been deleted or not.
      * 
* * bool deleted = 2; @@ -817,7 +817,7 @@ public boolean getDeleted() { * * *
-     * If the asset is deleted or not.
+     * Whether the asset has been deleted or not.
      * 
* * bool deleted = 2; @@ -835,7 +835,7 @@ public Builder setDeleted(boolean value) { * * *
-     * If the asset is deleted or not.
+     * Whether the asset has been deleted or not.
      * 
* * bool deleted = 2; @@ -859,7 +859,7 @@ public Builder clearDeleted() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -873,7 +873,7 @@ public boolean hasAsset() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -891,7 +891,7 @@ public com.google.cloud.asset.v1.Asset getAsset() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -913,7 +913,7 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset value) { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -932,7 +932,7 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -956,7 +956,7 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -976,7 +976,7 @@ public Builder clearAsset() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -990,7 +990,7 @@ public com.google.cloud.asset.v1.Asset.Builder getAssetBuilder() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -1006,7 +1006,7 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { * * *
-     * Asset.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java index acdb086e7..05e6fb46f 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java @@ -62,7 +62,7 @@ public interface TemporalAssetOrBuilder * * *
-   * If the asset is deleted or not.
+   * Whether the asset has been deleted or not.
    * 
* * bool deleted = 2; @@ -75,7 +75,7 @@ public interface TemporalAssetOrBuilder * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -87,7 +87,7 @@ public interface TemporalAssetOrBuilder * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -99,7 +99,7 @@ public interface TemporalAssetOrBuilder * * *
-   * Asset.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java index 5df03ff2b..c9bd32bc6 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java @@ -22,7 +22,7 @@ * * *
- * A time window of (start_time, end_time].
+ * A time window specified by its "start_time" and "end_time".
  * 
* * Protobuf type {@code google.cloud.asset.v1.TimeWindow} @@ -181,8 +181,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -196,8 +196,8 @@ public boolean hasEndTime() { * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -211,8 +211,8 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -401,7 +401,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A time window of (start_time, end_time].
+   * A time window specified by its "start_time" and "end_time".
    * 
* * Protobuf type {@code google.cloud.asset.v1.TimeWindow} @@ -763,8 +763,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -778,8 +778,8 @@ public boolean hasEndTime() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -797,8 +797,8 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -820,8 +820,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -840,8 +840,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -865,8 +865,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -886,8 +886,8 @@ public Builder clearEndTime() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -901,8 +901,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -918,8 +918,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * End time of the time window (inclusive).
-     * Current timestamp if not specified.
+     * End time of the time window (inclusive). If not specified, the current
+     * timestamp is used instead.
      * 
* * .google.protobuf.Timestamp end_time = 2; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java index 84748365c..a06e2ee59 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java @@ -62,8 +62,8 @@ public interface TimeWindowOrBuilder * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -75,8 +75,8 @@ public interface TimeWindowOrBuilder * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -88,8 +88,8 @@ public interface TimeWindowOrBuilder * * *
-   * End time of the time window (inclusive).
-   * Current timestamp if not specified.
+   * End time of the time window (inclusive). If not specified, the current
+   * timestamp is used instead.
    * 
* * .google.protobuf.Timestamp end_time = 2; diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto index 6566d0399..9c7b16d03 100644 --- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto +++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto @@ -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"; @@ -26,6 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/expr.proto"; option csharp_namespace = "Google.Cloud.Asset.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1;asset"; @@ -125,10 +125,10 @@ message ExportAssetsRequest { ]; // Timestamp to take an asset snapshot. This can only be set to a timestamp - // between 2018-10-02 UTC (inclusive) and the current time. If not specified, - // the current time will be used. Due to delays in resource data collection - // and indexing, there is a volatile window during which running the same - // query may get different results. + // between the current time and the current time minus 35 days (inclusive). + // If not specified, the current time will be used. Due to delays in resource + // data collection and indexing, there is a volatile window during which + // running the same query may get different results. google.protobuf.Timestamp read_time = 2; // A list of asset types of which to take a snapshot for. For example: @@ -187,11 +187,11 @@ message BatchGetAssetsHistoryRequest { ContentType content_type = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The time window for the asset history. Both start_time and - // end_time are optional and if set, it must be after 2018-10-02 UTC. If - // end_time is not set, it is default to current timestamp. If start_time is - // not set, the snapshot of the assets at end_time will be returned. The - // returned results contain all temporal assets whose time window overlap with - // read_time_window. + // end_time are optional and if set, it must be after the current time minus + // 35 days. If end_time is not set, it is default to current timestamp. + // If start_time is not set, the snapshot of the assets at end_time will be + // returned. The returned results contain all temporal assets whose time + // window overlap with read_time_window. TimeWindow read_time_window = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -321,7 +321,7 @@ message BigQueryDestination { // Required. The BigQuery dataset in format // "projects/projectId/datasets/datasetId", to which the snapshot result // should be exported. If this dataset does not exist, the export call returns - // an error. + // an INVALID_ARGUMENT error. string dataset = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The BigQuery table to which the snapshot result should be @@ -331,41 +331,23 @@ message BigQueryDestination { // If the destination table already exists and this flag is `TRUE`, the // table will be overwritten by the contents of assets snapshot. If the flag - // is not set and the destination table already exists, the export call - // returns an error. + // is `FALSE` or unset and the destination table already exists, the export + // call returns an INVALID_ARGUMEMT error. bool force = 3; } -// A Cloud Pubsub destination. +// A Pub/Sub destination. message PubsubDestination { - // The name of the Cloud Pub/Sub topic to publish to. + // The name of the Pub/Sub topic to publish to. // For example: `projects/PROJECT_ID/topics/TOPIC_ID`. string topic = 1; } -// Asset content type. -enum ContentType { - // Unspecified content type. - CONTENT_TYPE_UNSPECIFIED = 0; - - // Resource metadata. - RESOURCE = 1; - - // The actual IAM policy set on a resource. - IAM_POLICY = 2; - - // The Cloud Organization Policy set on an asset. - ORG_POLICY = 4; - - // The Cloud Access context mananger Policy set on an asset. - ACCESS_POLICY = 5; -} - // Output configuration for asset feed destination. message FeedOutputConfig { // Asset feed destination. oneof destination { - // Destination on Cloud Pubsub. + // Destination on Pub/Sub. PubsubDestination pubsub_destination = 1; } } @@ -374,7 +356,7 @@ message FeedOutputConfig { // An asset feed filter controls what updates are exported. // The asset feed must be created within a project, organization, or // folder. Supported destinations are: -// Cloud Pub/Sub topics. +// Pub/Sub topics. message Feed { option (google.api.resource) = { type: "cloudasset.googleapis.com/Feed" @@ -406,10 +388,11 @@ message Feed { // A list of types of the assets to receive updates. You must specify either // or both of asset_names and asset_types. Only asset updates matching // specified asset_names and asset_types are exported to the feed. - // For example: - // "compute.googleapis.com/Disk" See [Introduction to Cloud Asset - // Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) - // for all supported asset types. + // For example: `"compute.googleapis.com/Disk"` + // + // See [this + // topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + // for a list of all supported asset types. repeated string asset_types = 3; // Asset content type. If not specified, no content but the asset name and @@ -420,3 +403,21 @@ message Feed { // published to. FeedOutputConfig feed_output_config = 5 [(google.api.field_behavior) = REQUIRED]; } + +// Asset content type. +enum ContentType { + // Unspecified content type. + CONTENT_TYPE_UNSPECIFIED = 0; + + // Resource metadata. + RESOURCE = 1; + + // The actual IAM policy set on a resource. + IAM_POLICY = 2; + + // The Cloud Organization Policy set on an asset. + ORG_POLICY = 4; + + // The Cloud Access context mananger Policy set on an asset. + ACCESS_POLICY = 5; +} diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto index 6a5c8cb8c..1e8b40a11 100644 --- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto +++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto @@ -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,14 +11,17 @@ // 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"; package google.cloud.asset.v1; import "google/api/resource.proto"; +import "google/cloud/orgpolicy/v1/orgpolicy.proto"; import "google/iam/v1/policy.proto"; +import "google/identity/accesscontextmanager/v1/access_level.proto"; +import "google/identity/accesscontextmanager/v1/access_policy.proto"; +import "google/identity/accesscontextmanager/v1/service_perimeter.proto"; import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -32,31 +35,34 @@ option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1"; option php_namespace = "Google\\Cloud\\Asset\\V1"; -// Temporal asset. In addition to the asset, the temporal asset includes the -// status of the asset and valid from and to time of it. +// An asset in Google Cloud and its temporal metadata, including the time window +// when it was observed and its status during that window. message TemporalAsset { // The time window when the asset data and state was observed. TimeWindow window = 1; - // If the asset is deleted or not. + // Whether the asset has been deleted or not. bool deleted = 2; - // Asset. + // An asset in Google Cloud. Asset asset = 3; } -// A time window of (start_time, end_time]. +// A time window specified by its "start_time" and "end_time". message TimeWindow { // Start time of the time window (exclusive). google.protobuf.Timestamp start_time = 1; - // End time of the time window (inclusive). - // Current timestamp if not specified. + // End time of the time window (inclusive). If not specified, the current + // timestamp is used instead. google.protobuf.Timestamp end_time = 2; } -// Cloud asset. This includes all Google Cloud Platform resources, -// Cloud IAM policies, and other non-GCP assets. +// An asset in Google Cloud. An asset can be any resource in the Google Cloud +// [resource +// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), +// a resource outside the Google Cloud resource hierarchy (such as Google +// Kubernetes Engine clusters and objects), or a Cloud IAM policy. message Asset { option (google.api.resource) = { type: "cloudasset.googleapis.com/Asset" @@ -64,53 +70,86 @@ message Asset { }; // The full name of the asset. For example: - // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. + // "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1" + // // See [Resource - // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + // names](https://cloud.google.com/apis/design/resource_names#full_resource_name) // for more information. string name = 1; - // Type of the asset. Example: "compute.googleapis.com/Disk". + // The type of the asset. For example: "compute.googleapis.com/Disk" + // + // See [Supported asset + // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + // for more information. string asset_type = 2; - // Representation of the resource. + // A representation of the resource. Resource resource = 3; - // 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. + // A representation of the Cloud IAM policy set on a Google Cloud resource. + // There can be a maximum of one Cloud IAM policy set on any given resource. + // In addition, Cloud IAM policies inherit their granted access scope from any + // policies set on parent resources in the resource hierarchy. Therefore, the + // effectively policy is the union of both the policy set on this resource + // and each policy set on all of the resource's ancestry resource levels in + // the hierarchy. See + // [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for + // more information. google.iam.v1.Policy iam_policy = 4; - // Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, - // represented as a list of relative resource names. Ancestry path starts with - // the closest CRM ancestor and ends at root. If the asset is a CRM - // project/folder/organization, this starts from the asset itself. + // A representation of an [organization + // policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). + // There can be more than one organization policy with different constraints + // set on a given resource. + repeated google.cloud.orgpolicy.v1.Policy org_policy = 6; + + // A representation of an [access + // policy](https://cloud.google.com/access-context-manager/docs/overview#access-policies). + oneof access_context_policy { + google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + + google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + + google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + } + + // The ancestry path of an asset in Google Cloud [resource + // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), + // represented as a list of relative resource names. An ancestry path starts + // with the closest ancestor in the hierarchy and ends at root. If the asset + // is a project, folder, or organization, the ancestry path starts from the + // asset itself. // - // Example: ["projects/123456789", "folders/5432", "organizations/1234"] + // For example: `["projects/123456789", "folders/5432", "organizations/1234"]` repeated string ancestors = 10; } -// Representation of a cloud resource. +// A representation of a Google Cloud resource. message Resource { - // The API version. Example: "v1". + // The API version. For example: "v1" string version = 1; // The URL of the discovery document containing the resource's JSON schema. // For example: - // `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. - // It will be left unspecified for resources without a discovery-based API, - // such as Cloud Bigtable. + // "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest" + // + // This value is unspecified for resources that do not have an API based on a + // discovery document, such as Cloud Bigtable. string discovery_document_uri = 2; - // The JSON schema name listed in the discovery document. - // Example: "Project". It will be left unspecified for resources (such as - // Cloud Bigtable) without a discovery-based API. + // The JSON schema name listed in the discovery document. For example: + // "Project" + // + // This value is unspecified for resources that do not have an API based on a + // discovery document, such as Cloud Bigtable. string discovery_name = 3; - // The REST URL for accessing the resource. An HTTP GET operation using this - // URL returns the resource itself. - // Example: - // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. - // It will be left unspecified for resources without a REST API. + // The REST URL for accessing the resource. An HTTP `GET` request using this + // URL returns the resource itself. For example: + // "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123" + // + // This value is unspecified for resources without a REST API. string resource_url = 4; // The full name of the immediate parent of this resource. See @@ -118,15 +157,16 @@ message Resource { // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) // for more information. // - // For GCP assets, it is the parent resource defined in the [Cloud IAM policy + // For Google Cloud assets, this value is the parent resource defined in the + // [Cloud IAM policy // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). // For example: - // `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. + // "//cloudresourcemanager.googleapis.com/projects/my_project_123" // - // For third-party assets, it is up to the users to define. + // For third-party assets, this field may be set differently. string parent = 5; - // The content of the resource, in which some sensitive fields are scrubbed - // away and may not be present. + // The content of the resource, in which some sensitive fields are removed + // and may not be present. google.protobuf.Struct data = 6; } diff --git a/synth.metadata b/synth.metadata index 5e4bd61e4..0414225a2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,53 +1,52 @@ { - "updateTime": "2020-03-25T21:41:54.540765Z", + "updateTime": "2020-03-28T21:50:48.224907Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6", - "internalRef": "302958009" + "sha": "b655808b3481a92f478ae2f828a6ce8220e40f32", + "internalRef": "303527638" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6", - "internalRef": "302958009" + "sha": "b655808b3481a92f478ae2f828a6ce8220e40f32", + "internalRef": "303527638" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6", - "internalRef": "302958009" + "sha": "b655808b3481a92f478ae2f828a6ce8220e40f32", + "internalRef": "303527638" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6", - "internalRef": "302958009" + "sha": "b655808b3481a92f478ae2f828a6ce8220e40f32", + "internalRef": "303527638" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6", - "internalRef": "302958009", - "log": "32dc6e832039b61ac3fb82c72eb0a27570aebcd6\nredis: v1beta1 enables REDIS_5_0 as an option for redis_version field and adds two new redis configs --stream-node-max-entries --stream-node-max-bytes\n\nPiperOrigin-RevId: 302958009\n\n685f16483cc4d87c35051f21f8f13ef4fdc919b4\nredis: v1 enables REDIS_5_0 as an option for redis_version field and adds two new redis configs --stream-node-max-entries --stream-node-max-bytes\n\nPiperOrigin-RevId: 302957729\n\n733cb282ae5e64673ef86c9a5dff647df803d8b7\nAdd GAPIC cofiguration for v1 client library genetration.\n\nPiperOrigin-RevId: 302928200\n\n1b0fff5f2ec6dc4a9443d9b50e70e9c94c30c45b\ndocs: remove an internal lint declaration\n\nPiperOrigin-RevId: 302928106\n\n2be23f3f3036a6f7ce0844def3d2d3da74e5d415\nfix(google/maps): Add post-processing rules for Google Maps APIs\n\nPiperOrigin-RevId: 302925222\n\nfd83ab212176a1042e8d45ea90766b3bf59ac679\nfix: migrate osconfig/agentendpoint/v1 go_gapic_library target to microgen impl\n\nPiperOrigin-RevId: 302913609\n\n0e07113e776bdd8fcc0783372e08bb6e76cb1b5b\ndocs: Update documentation with links to smart home developer guides and reference pages. Remove outdated authorization instructions.\n\nPiperOrigin-RevId: 302892245\n\n551cf1e6e3addcc63740427c4f9b40dedd3dac27\nfeat: Add OS Config AgentEndpointService v1 PatchJobs and Tasks APIs.\n\nPiperOrigin-RevId: 302792195\n\n1df117114c73299b614dfd3ba3632bf246669336\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 302753982\n\n71d6c56a14bb433beb1237dccb48dabcd9597924\nRefresh monitoring client libraries.\nRename to Cloud Monitoring API.\nAdded support for TimeSeriesQueryLanguageCondition condition type in alert policies.\n\nPiperOrigin-RevId: 302735422\n\n25a1781c096974df99d556cc5888fefa82bc6425\nbazel: migrate all go_gapic_library targets to microgenerator implementation\n\n* update rules_go and gazelle bazel dependencies\n* update gapic-generator bazel dependency (with build file generator changes)\n\nPiperOrigin-RevId: 302730217\n\n" + "sha": "b655808b3481a92f478ae2f828a6ce8220e40f32", + "internalRef": "303527638", + "log": "b655808b3481a92f478ae2f828a6ce8220e40f32\ncloudasset: add org policy and access context manager protos to client libraries.\n\nPiperOrigin-RevId: 303527638\n\nd8c5da9a9471659b51d5862dd2ea7ad3c4bc49ef\nPopulate BAZEL.build files for AccessContextManager.\n\nPiperOrigin-RevId: 303526825\n\ncf9db7161cb9d4dbef06cd8bf5354ec485e51e2d\nPopulate BAZEL.build files for OrgPolicy.\n\nPiperOrigin-RevId: 303526702\n\n558b800ed594acc02555cc560fbb39c0e42bc438\nchore: turn on gapic v2 for Dataproc API.\nfix:\n- add missing method signatures\n- remove resource_reference not on a string field\n- adjust resource name pattern orders\n\nPiperOrigin-RevId: 303431167\n\n8eb444cf5ff63f68d826acbb37b2ac3da58655fb\nAdd logging protos for Recommender v1beta1.\n\nPiperOrigin-RevId: 303426030\n\n48a166ce9f6e2a88b10947341b37336fe9dd3478\nPush of PHP, C# and Ruby namespaces\n\nPiperOrigin-RevId: 303302813\n\n42f77489b300df2e27c84a7b65c4e8f04da20981\nThis is first release of the API protos and Bazel BUILD files for the Analytics Management API V1alpha.\n\nPiperOrigin-RevId: 303241805\n\n8bea81bfa461698981b3d3a488a95633d2f6e9ff\nchore: use latest protoc-java-resource-name-plugin in bazel WORKSPACE.\nnew commits:\n- fix: stop generating `parseList` and `toStringList` if a multi-pattern resource name has subclasses (#79)\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 303197602\n\nb14af92e565264675d6b12cd2c0ded6c94ddd7f8\nfix talent API incorrect placeholders in two resource name patterns.\ncommitter: @hzyi-google\n\nPiperOrigin-RevId: 303189497\n\n8e22db908ae09e1f7e2802c03b4563fd6b524e0e\nchore(google/maps): Update postprocessing script for Java.\n\n- Update root build.gradle to load local plugin\n- Change com.google.api.grpc group to com.google.maps\n\nPiperOrigin-RevId: 303176850\n\n65816afa71e588252b7119dc723592abe51ea106\nbazel: update gapic-generator-go to v0.12.5 and gapic-generator hash\n\nChanges to gapic-generator-go include:\n* feat: strip invalid link references in comments\n* chore: updating Go deps in bazel repositories\n\nChanges to gapic-generator include:\n* fix: bazel go build gen check for cloud in proto pkg name\n* Revert \"feat: allow static substitution for group name\"\n\nPiperOrigin-RevId: 303150338\n\nd4aa417ed2bba89c2d216900282bddfdafef6128\nFix incorrect retry config in gapic v2 for kms.\n\nPiperOrigin-RevId: 303010132\n\nfd08334533204fdd1b33f79fcb263dbb5bf13de0\nfix: osconfig/v1 update go_gapic_library target to microgen interface\n\nPiperOrigin-RevId: 303007866\n\ne2c0f2a0e06d86b50aba98f67f9f291587d986b3\nUpdate comments for google/rpc/error_details.proto.\n\nPiperOrigin-RevId: 303002528\n\nf786c7586748e78a286b1620ff3ddbf7b4dcab92\nfeat: Add OsConfigService v1 patch APIs.\n\nPiperOrigin-RevId: 302999346\n\n0341fa3fc2f4073a1b1f260d37b2ce620799f545\nTurn on gapic config v2 for kms.\n\nCommitter: @hzyi-google\nPiperOrigin-RevId: 302980301\n\n" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8", - "log": "e36822bfa0acb355502dab391b8ef9c4f30208d8\nchore(java): treat samples shared configuration dependency update as chore (#457)\n\n\n1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c\nfix: do not run node 8 CI (#456)\n\n\nee4330a0e5f4b93978e8683fbda8e6d4148326b7\nchore(java_templates): mark version bumps of current library as a chore (#452)\n\nWith the samples/install-without-bom/pom.xml referencing the latest released library, we want to mark updates of this version as a chore for renovate bot.\na0d3133a5d45544a66345059eebf76933265c099\nfix(java): run mvn install with retry (#453)\n\n* fix(java): run mvn install with retry\n\n* fix invocation of command\n" + "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8" } } ],