Skip to content

Commit 5ea5bee

Browse files
feat: [recaptchaenterprise] added stable account identifier to related 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: https://github.com/googleapis/googleapis-gen/commit/acf6d7f589ee2ba0b1aaae698bf1e83c06a65dc4 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 <[email protected]>
1 parent 615854d commit 5ea5bee

File tree

23 files changed

+1215
-616
lines changed

23 files changed

+1215
-616
lines changed

java-recaptchaenterprise/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.27.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.28.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,9 +2437,10 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
24372437
*
24382438
* @param project Required. The name of the project to search related account group memberships
24392439
* from. Specify the project name in the following format: `projects/{project}`.
2440-
* @param hashedAccountId Optional. The unique stable hashed user identifier used to search
2441-
* connections. The identifier should correspond to a `hashed_account_id` provided in a
2442-
* previous `CreateAssessment` or `AnnotateAssessment` call.
2440+
* @param hashedAccountId Optional. Deprecated: use `account_id` instead. The unique stable hashed
2441+
* account identifier used to search connections. The identifier should correspond to a
2442+
* `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
2443+
* Either hashed_account_id or account_id must be set, but not both.
24432444
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
24442445
*/
24452446
public final SearchRelatedAccountGroupMembershipsPagedResponse
@@ -2480,9 +2481,10 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
24802481
*
24812482
* @param project Required. The name of the project to search related account group memberships
24822483
* from. Specify the project name in the following format: `projects/{project}`.
2483-
* @param hashedAccountId Optional. The unique stable hashed user identifier used to search
2484-
* connections. The identifier should correspond to a `hashed_account_id` provided in a
2485-
* previous `CreateAssessment` or `AnnotateAssessment` call.
2484+
* @param hashedAccountId Optional. Deprecated: use `account_id` instead. The unique stable hashed
2485+
* account identifier used to search connections. The identifier should correspond to a
2486+
* `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
2487+
* Either hashed_account_id or account_id must be set, but not both.
24862488
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
24872489
*/
24882490
public final SearchRelatedAccountGroupMembershipsPagedResponse
@@ -2513,6 +2515,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
25132515
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
25142516
* .setProject(
25152517
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
2518+
* .setAccountId("accountId-1827029976")
25162519
* .setHashedAccountId(ByteString.EMPTY)
25172520
* .setPageSize(883849137)
25182521
* .setPageToken("pageToken873572522")
@@ -2552,6 +2555,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
25522555
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
25532556
* .setProject(
25542557
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
2558+
* .setAccountId("accountId-1827029976")
25552559
* .setHashedAccountId(ByteString.EMPTY)
25562560
* .setPageSize(883849137)
25572561
* .setPageToken("pageToken873572522")
@@ -2592,6 +2596,7 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG
25922596
* SearchRelatedAccountGroupMembershipsRequest.newBuilder()
25932597
* .setProject(
25942598
* RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString())
2599+
* .setAccountId("accountId-1827029976")
25952600
* .setHashedAccountId(ByteString.EMPTY)
25962601
* .setPageSize(883849137)
25972602
* .setPageToken("pageToken873572522")

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7070
*
7171
*
7272
* <pre>
73-
* Output only. The resource name for the Assessment in the format
73+
* Output only. Identifier. The resource name for the Assessment in the format
7474
* `projects/{project}/assessments/{assessment}`.
7575
* </pre>
7676
*
77-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
77+
* <code>
78+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
79+
* </code>
7880
*
7981
* @return The name.
8082
*/
@@ -94,11 +96,13 @@ public java.lang.String getName() {
9496
*
9597
*
9698
* <pre>
97-
* Output only. The resource name for the Assessment in the format
99+
* Output only. Identifier. The resource name for the Assessment in the format
98100
* `projects/{project}/assessments/{assessment}`.
99101
* </pre>
100102
*
101-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
103+
* <code>
104+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
105+
* </code>
102106
*
103107
* @return The bytes for name.
104108
*/
@@ -1306,11 +1310,13 @@ public Builder mergeFrom(
13061310
*
13071311
*
13081312
* <pre>
1309-
* Output only. The resource name for the Assessment in the format
1313+
* Output only. Identifier. The resource name for the Assessment in the format
13101314
* `projects/{project}/assessments/{assessment}`.
13111315
* </pre>
13121316
*
1313-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1317+
* <code>
1318+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
1319+
* </code>
13141320
*
13151321
* @return The name.
13161322
*/
@@ -1329,11 +1335,13 @@ public java.lang.String getName() {
13291335
*
13301336
*
13311337
* <pre>
1332-
* Output only. The resource name for the Assessment in the format
1338+
* Output only. Identifier. The resource name for the Assessment in the format
13331339
* `projects/{project}/assessments/{assessment}`.
13341340
* </pre>
13351341
*
1336-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1342+
* <code>
1343+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
1344+
* </code>
13371345
*
13381346
* @return The bytes for name.
13391347
*/
@@ -1352,11 +1360,13 @@ public com.google.protobuf.ByteString getNameBytes() {
13521360
*
13531361
*
13541362
* <pre>
1355-
* Output only. The resource name for the Assessment in the format
1363+
* Output only. Identifier. The resource name for the Assessment in the format
13561364
* `projects/{project}/assessments/{assessment}`.
13571365
* </pre>
13581366
*
1359-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1367+
* <code>
1368+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
1369+
* </code>
13601370
*
13611371
* @param value The name to set.
13621372
* @return This builder for chaining.
@@ -1374,11 +1384,13 @@ public Builder setName(java.lang.String value) {
13741384
*
13751385
*
13761386
* <pre>
1377-
* Output only. The resource name for the Assessment in the format
1387+
* Output only. Identifier. The resource name for the Assessment in the format
13781388
* `projects/{project}/assessments/{assessment}`.
13791389
* </pre>
13801390
*
1381-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1391+
* <code>
1392+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
1393+
* </code>
13821394
*
13831395
* @return This builder for chaining.
13841396
*/
@@ -1392,11 +1404,13 @@ public Builder clearName() {
13921404
*
13931405
*
13941406
* <pre>
1395-
* Output only. The resource name for the Assessment in the format
1407+
* Output only. Identifier. The resource name for the Assessment in the format
13961408
* `projects/{project}/assessments/{assessment}`.
13971409
* </pre>
13981410
*
1399-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1411+
* <code>
1412+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
1413+
* </code>
14001414
*
14011415
* @param value The bytes for name to set.
14021416
* @return This builder for chaining.

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ public interface AssessmentOrBuilder
2727
*
2828
*
2929
* <pre>
30-
* Output only. The resource name for the Assessment in the format
30+
* Output only. Identifier. The resource name for the Assessment in the format
3131
* `projects/{project}/assessments/{assessment}`.
3232
* </pre>
3333
*
34-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
34+
* <code>
35+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
36+
* </code>
3537
*
3638
* @return The name.
3739
*/
@@ -40,11 +42,13 @@ public interface AssessmentOrBuilder
4042
*
4143
*
4244
* <pre>
43-
* Output only. The resource name for the Assessment in the format
45+
* Output only. Identifier. The resource name for the Assessment in the format
4446
* `projects/{project}/assessments/{assessment}`.
4547
* </pre>
4648
*
47-
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
49+
* <code>
50+
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
51+
* </code>
4852
*
4953
* @return The bytes for name.
5054
*/

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public com.google.protobuf.ByteString getExpectedActionBytes() {
352352
* </code>
353353
*
354354
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
355-
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
355+
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
356356
* @return The hashedAccountId.
357357
*/
358358
@java.lang.Override
@@ -1962,7 +1962,7 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) {
19621962
* </code>
19631963
*
19641964
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
1965-
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
1965+
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
19661966
* @return The hashedAccountId.
19671967
*/
19681968
@java.lang.Override
@@ -1984,7 +1984,7 @@ public com.google.protobuf.ByteString getHashedAccountId() {
19841984
* </code>
19851985
*
19861986
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
1987-
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
1987+
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
19881988
* @param value The hashedAccountId to set.
19891989
* @return This builder for chaining.
19901990
*/
@@ -2012,7 +2012,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
20122012
* </code>
20132013
*
20142014
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
2015-
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
2015+
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
20162016
* @return This builder for chaining.
20172017
*/
20182018
@java.lang.Deprecated

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public interface EventOrBuilder
173173
* </code>
174174
*
175175
* @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See
176-
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663
176+
* google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666
177177
* @return The hashedAccountId.
178178
*/
179179
@java.lang.Deprecated

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7575
*
7676
*
7777
* <pre>
78-
* The resource name for the FirewallPolicy in the format
78+
* Identifier. The resource name for the FirewallPolicy in the format
7979
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
8080
* </pre>
8181
*
82-
* <code>string name = 1;</code>
82+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
8383
*
8484
* @return The name.
8585
*/
@@ -99,11 +99,11 @@ public java.lang.String getName() {
9999
*
100100
*
101101
* <pre>
102-
* The resource name for the FirewallPolicy in the format
102+
* Identifier. The resource name for the FirewallPolicy in the format
103103
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
104104
* </pre>
105105
*
106-
* <code>string name = 1;</code>
106+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
107107
*
108108
* @return The bytes for name.
109109
*/
@@ -898,11 +898,11 @@ public Builder mergeFrom(
898898
*
899899
*
900900
* <pre>
901-
* The resource name for the FirewallPolicy in the format
901+
* Identifier. The resource name for the FirewallPolicy in the format
902902
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
903903
* </pre>
904904
*
905-
* <code>string name = 1;</code>
905+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
906906
*
907907
* @return The name.
908908
*/
@@ -921,11 +921,11 @@ public java.lang.String getName() {
921921
*
922922
*
923923
* <pre>
924-
* The resource name for the FirewallPolicy in the format
924+
* Identifier. The resource name for the FirewallPolicy in the format
925925
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
926926
* </pre>
927927
*
928-
* <code>string name = 1;</code>
928+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
929929
*
930930
* @return The bytes for name.
931931
*/
@@ -944,11 +944,11 @@ public com.google.protobuf.ByteString getNameBytes() {
944944
*
945945
*
946946
* <pre>
947-
* The resource name for the FirewallPolicy in the format
947+
* Identifier. The resource name for the FirewallPolicy in the format
948948
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
949949
* </pre>
950950
*
951-
* <code>string name = 1;</code>
951+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
952952
*
953953
* @param value The name to set.
954954
* @return This builder for chaining.
@@ -966,11 +966,11 @@ public Builder setName(java.lang.String value) {
966966
*
967967
*
968968
* <pre>
969-
* The resource name for the FirewallPolicy in the format
969+
* Identifier. The resource name for the FirewallPolicy in the format
970970
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
971971
* </pre>
972972
*
973-
* <code>string name = 1;</code>
973+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
974974
*
975975
* @return This builder for chaining.
976976
*/
@@ -984,11 +984,11 @@ public Builder clearName() {
984984
*
985985
*
986986
* <pre>
987-
* The resource name for the FirewallPolicy in the format
987+
* Identifier. The resource name for the FirewallPolicy in the format
988988
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
989989
* </pre>
990990
*
991-
* <code>string name = 1;</code>
991+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
992992
*
993993
* @param value The bytes for name to set.
994994
* @return This builder for chaining.

java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public interface FirewallPolicyOrBuilder
2727
*
2828
*
2929
* <pre>
30-
* The resource name for the FirewallPolicy in the format
30+
* Identifier. The resource name for the FirewallPolicy in the format
3131
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
3232
* </pre>
3333
*
34-
* <code>string name = 1;</code>
34+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
3535
*
3636
* @return The name.
3737
*/
@@ -40,11 +40,11 @@ public interface FirewallPolicyOrBuilder
4040
*
4141
*
4242
* <pre>
43-
* The resource name for the FirewallPolicy in the format
43+
* Identifier. The resource name for the FirewallPolicy in the format
4444
* `projects/{project}/firewallpolicies/{firewallpolicy}`.
4545
* </pre>
4646
*
47-
* <code>string name = 1;</code>
47+
* <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
4848
*
4949
* @return The bytes for name.
5050
*/

0 commit comments

Comments
 (0)