Skip to content

Commit

Permalink
feat: [recaptchaenterprise] added stable account identifier to relate…
Browse files Browse the repository at this point in the history
…d group membership resources, and deprecated hashed identifier field (#10121)

* feat: added stable account identifier to related group membership resources, and deprecated hashed identifier field
docs: noted applicable fields as resource identifiers

PiperOrigin-RevId: 588509751

Source-Link: googleapis/googleapis@f4ea986

Source-Link: googleapis/googleapis-gen@acf6d7f
Copy-Tag: eyJwIjoiamF2YS1yZWNhcHRjaGFlbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiJhY2Y2ZDdmNTg5ZWUyYmEwYjFhYWFlNjk4YmYxZTgzYzA2YTY1ZGM0In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tomo Suzuki <suztomo@google.com>
  • Loading branch information
3 people committed Jan 2, 2024
1 parent 615854d commit 5ea5bee
Show file tree
Hide file tree
Showing 23 changed files with 1,215 additions and 616 deletions.
2 changes: 1 addition & 1 deletion java-recaptchaenterprise/README.md
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.27.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.28.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Expand Up @@ -2437,9 +2437,10 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
*
* @param project Required. The name of the project to search related account group memberships
* from. Specify the project name in the following format: `projects/{project}`.
* @param hashedAccountId Optional. The unique stable hashed user identifier used to search
* connections. The identifier should correspond to a `hashed_account_id` provided in a
* previous `CreateAssessment` or `AnnotateAssessment` call.
* @param hashedAccountId Optional. Deprecated: use `account_id` instead. The unique stable hashed
* account identifier used to search connections. The identifier should correspond to a
* `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
* Either hashed_account_id or account_id must be set, but not both.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SearchRelatedAccountGroupMembershipsPagedResponse
Expand Down Expand Up @@ -2480,9 +2481,10 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
*
* @param project Required. The name of the project to search related account group memberships
* from. Specify the project name in the following format: `projects/{project}`.
* @param hashedAccountId Optional. The unique stable hashed user identifier used to search
* connections. The identifier should correspond to a `hashed_account_id` provided in a
* previous `CreateAssessment` or `AnnotateAssessment` call.
* @param hashedAccountId Optional. Deprecated: use `account_id` instead. The unique stable hashed
* account identifier used to search connections. The identifier should correspond to a
* `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
* Either hashed_account_id or account_id must be set, but not both.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SearchRelatedAccountGroupMembershipsPagedResponse
Expand Down Expand Up @@ -2513,6 +2515,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
* .setProject(
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
* .setAccountId("accountId-1827029976")
* .setHashedAccountId(ByteString.EMPTY)
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
Expand Down Expand Up @@ -2552,6 +2555,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
* .setProject(
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
* .setAccountId("accountId-1827029976")
* .setHashedAccountId(ByteString.EMPTY)
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
Expand Down Expand Up @@ -2592,6 +2596,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
* .setProject(
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
* .setAccountId("accountId-1827029976")
* .setHashedAccountId(ByteString.EMPTY)
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
Expand Down
Expand Up @@ -70,11 +70,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The name.
*/
Expand All @@ -94,11 +96,13 @@ public java.lang.String getName() {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The bytes for name.
*/
Expand Down Expand Up @@ -1306,11 +1310,13 @@ public Builder mergeFrom(
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The name.
*/
Expand All @@ -1329,11 +1335,13 @@ public java.lang.String getName() {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The bytes for name.
*/
Expand All @@ -1352,11 +1360,13 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @param value The name to set.
* @return This builder for chaining.
Expand All @@ -1374,11 +1384,13 @@ public Builder setName(java.lang.String value) {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return This builder for chaining.
*/
Expand All @@ -1392,11 +1404,13 @@ public Builder clearName() {
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @param value The bytes for name to set.
* @return This builder for chaining.
Expand Down
Expand Up @@ -27,11 +27,13 @@ public interface AssessmentOrBuilder
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The name.
*/
Expand All @@ -40,11 +42,13 @@ public interface AssessmentOrBuilder
*
*
* <pre>
* Output only. The resource name for the Assessment in the format
* Output only. Identifier. The resource name for the Assessment in the format
* `projects/{project}/assessments/{assessment}`.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* <code>
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* </code>
*
* @return The bytes for name.
*/
Expand Down
Expand Up @@ -352,7 +352,7 @@ public com.google.protobuf.ByteString getExpectedActionBytes() {
* </code>
*
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
* @return The hashedAccountId.
*/
@java.lang.Override
Expand Down Expand Up @@ -1962,7 +1962,7 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) {
* </code>
*
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
* @return The hashedAccountId.
*/
@java.lang.Override
Expand All @@ -1984,7 +1984,7 @@ public com.google.protobuf.ByteString getHashedAccountId() {
* </code>
*
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
* @param value The hashedAccountId to set.
* @return This builder for chaining.
*/
Expand Down Expand Up @@ -2012,7 +2012,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
* </code>
*
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down
Expand Up @@ -173,7 +173,7 @@ public interface EventOrBuilder
* </code>
*
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
* @return The hashedAccountId.
*/
@java.lang.Deprecated
Expand Down
Expand Up @@ -75,11 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The name.
*/
Expand All @@ -99,11 +99,11 @@ public java.lang.String getName() {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The bytes for name.
*/
Expand Down Expand Up @@ -898,11 +898,11 @@ public Builder mergeFrom(
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The name.
*/
Expand All @@ -921,11 +921,11 @@ public java.lang.String getName() {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The bytes for name.
*/
Expand All @@ -944,11 +944,11 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @param value The name to set.
* @return This builder for chaining.
Expand All @@ -966,11 +966,11 @@ public Builder setName(java.lang.String value) {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return This builder for chaining.
*/
Expand All @@ -984,11 +984,11 @@ public Builder clearName() {
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @param value The bytes for name to set.
* @return This builder for chaining.
Expand Down
Expand Up @@ -27,11 +27,11 @@ public interface FirewallPolicyOrBuilder
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The name.
*/
Expand All @@ -40,11 +40,11 @@ public interface FirewallPolicyOrBuilder
*
*
* <pre>
* The resource name for the FirewallPolicy in the format
* Identifier. The resource name for the FirewallPolicy in the format
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
* </pre>
*
* <code>string name = 1;</code>
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
*
* @return The bytes for name.
*/
Expand Down

0 comments on commit 5ea5bee

Please sign in to comment.