Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [recaptchaenterprise] added stable account identifier to related group membership resources, and deprecated hashed identifier field #10121

Merged
merged 3 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion java-recaptchaenterprise/README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading
Loading