From 9fe85efadd651bfae22ff92d904762954ffa18fd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:40:28 -0500 Subject: [PATCH] feat: [recaptchaenterprise] added AnnotateAssessmentRequest.account_id (#10077) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: minor comments updates PiperOrigin-RevId: 584363225 Source-Link: https://github.com/googleapis/googleapis/commit/e4009041e691e28a6fb84de6b1ccc1e4d4e72031 Source-Link: https://github.com/googleapis/googleapis-gen/commit/20c94b46074d2cc1f723489f97f82658715cf0ff Copy-Tag: eyJwIjoiamF2YS1yZWNhcHRjaGFlbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiIyMGM5NGI0NjA3NGQyY2MxZjcyMzQ4OWY5N2Y4MjY1ODcxNWNmMGZmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added AnnotateAssessmentRequest.account_id feat: added Event.user_info docs: updated comments PiperOrigin-RevId: 584376490 Source-Link: https://github.com/googleapis/googleapis/commit/3413c935f26db17787ea454bc686c488c42499ce Source-Link: https://github.com/googleapis/googleapis-gen/commit/87d4cd102836d24ed2fbfb9ded537734cdc707a9 Copy-Tag: eyJwIjoiamF2YS1yZWNhcHRjaGFlbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiI4N2Q0Y2QxMDI4MzZkMjRlZDJmYmZiOWRlZDUzNzczNGNkYzcwN2E5In0= * 🦉 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 --- java-recaptchaenterprise/README.md | 2 +- .../v1/RecaptchaEnterpriseServiceClient.java | 2 + .../reflect-config.json | 36 + .../v1/AccountVerificationInfo.java | 14 +- .../v1/AccountVerificationInfoOrBuilder.java | 4 +- .../v1/AnnotateAssessmentRequest.java | 307 +++- .../AnnotateAssessmentRequestOrBuilder.java | 53 +- .../recaptchaenterprise/v1/Assessment.java | 48 +- .../v1/AssessmentOrBuilder.java | 12 +- .../google/recaptchaenterprise/v1/Event.java | 371 +++- .../v1/EventOrBuilder.java | 61 +- .../v1/RecaptchaEnterpriseProto.java | 1056 ++++++------ .../google/recaptchaenterprise/v1/UserId.java | 1239 ++++++++++++++ .../v1/UserIdOrBuilder.java | 144 ++ .../recaptchaenterprise/v1/UserInfo.java | 1505 +++++++++++++++++ .../v1/UserInfoOrBuilder.java | 167 ++ .../v1/recaptchaenterprise.proto | 70 +- .../v1beta1/AnnotateAssessmentRequest.java | 91 +- .../AnnotateAssessmentRequestOrBuilder.java | 25 +- .../v1beta1/TransactionData.java | 2 - .../v1beta1/recaptchaenterprise.proto | 14 +- .../AsyncAnnotateAssessment.java | 1 + .../SyncAnnotateAssessment.java | 1 + 23 files changed, 4487 insertions(+), 738 deletions(-) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 86e6d1e83e95..fdef7f280327 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.26.0 + 26.27.0 pom import diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java index f96f2f3b1647..f5d8267f6bcc 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java @@ -425,6 +425,7 @@ public final AnnotateAssessmentResponse annotateAssessment( * AnnotateAssessmentRequest.newBuilder() * .setName(AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString()) * .addAllReasons(new ArrayList()) + * .setAccountId("accountId-1827029976") * .setHashedAccountId(ByteString.EMPTY) * .setTransactionEvent(TransactionEvent.newBuilder().build()) * .build(); @@ -459,6 +460,7 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq * AnnotateAssessmentRequest.newBuilder() * .setName(AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString()) * .addAllReasons(new ArrayList()) + * .setAccountId("accountId-1827029976") * .setHashedAccountId(ByteString.EMPTY) * .setTransactionEvent(TransactionEvent.newBuilder().build()) * .build(); diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json index bdeb97cdcd48..7d5a4275544a 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json @@ -2312,6 +2312,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.recaptchaenterprise.v1.UserId", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.UserId$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.UserInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.UserInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.recaptchaenterprise.v1.WafSettings", "queryAllDeclaredConstructors": true, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java index e1e4be757a80..ebdfaba0df75 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java @@ -592,7 +592,7 @@ public int getLatestVerificationResultValue() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ @java.lang.Override @@ -619,7 +619,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ @java.lang.Override @@ -1732,7 +1732,7 @@ public Builder clearLatestVerificationResult() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ @java.lang.Deprecated @@ -1758,7 +1758,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ @java.lang.Deprecated @@ -1784,7 +1784,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @param value The username to set. * @return This builder for chaining. */ @@ -1809,7 +1809,7 @@ public Builder setUsername(java.lang.String value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1830,7 +1830,7 @@ public Builder clearUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @param value The bytes for username to set. * @return This builder for chaining. */ diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java index d107463a96b7..29f92883cc83 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java @@ -153,7 +153,7 @@ com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpoints * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ @java.lang.Deprecated @@ -169,7 +169,7 @@ com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpoints * string username = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java index 0c7f80861396..739bc670e292 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java @@ -41,6 +41,7 @@ private AnnotateAssessmentRequest() { name_ = ""; annotation_ = 0; reasons_ = java.util.Collections.emptyList(); + accountId_ = ""; hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; } @@ -863,8 +864,7 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason conver * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -884,8 +884,7 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason conver * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -902,8 +901,7 @@ public int getReasonsCount() { * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -921,8 +919,7 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getRea * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -939,8 +936,7 @@ public java.util.List getReasonsValueList() { * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -957,17 +953,71 @@ public int getReasonsValue(int index) { private int reasonsMemoizedSerializedSize; + public static final int ACCOUNT_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountId_ = ""; + /** + * + * + *
+   * Optional. A stable account identifier to apply to the assessment. This is
+   * an alternative to setting `account_id` in `CreateAssessment`, for example
+   * when a stable account identifier is not yet known in the initial request.
+   * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + @java.lang.Override + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A stable account identifier to apply to the assessment. This is
+   * an alternative to setting `account_id` in `CreateAssessment`, for example
+   * when a stable account identifier is not yet known in the initial request.
+   * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-   * Optional. Unique stable hashed user identifier to apply to the assessment.
-   * This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
+   * Optional. A stable hashed account identifier to apply to the assessment.
+   * This is an alternative to setting `hashed_account_id` in
+   * `CreateAssessment`, for example when a stable account identifier is not yet
+   * known in the initial request.
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1076,6 +1126,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (transactionEvent_ != null) { output.writeMessage(5, getTransactionEvent()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, accountId_); + } getUnknownFields().writeTo(output); } @@ -1112,6 +1165,9 @@ public int getSerializedSize() { if (transactionEvent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransactionEvent()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, accountId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1131,6 +1187,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (annotation_ != other.annotation_) return false; if (!reasons_.equals(other.reasons_)) return false; + if (!getAccountId().equals(other.getAccountId())) return false; if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; if (hasTransactionEvent() != other.hasTransactionEvent()) return false; if (hasTransactionEvent()) { @@ -1155,6 +1212,8 @@ public int hashCode() { hash = (37 * hash) + REASONS_FIELD_NUMBER; hash = (53 * hash) + reasons_.hashCode(); } + hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + HASHED_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getHashedAccountId().hashCode(); if (hasTransactionEvent()) { @@ -1305,6 +1364,7 @@ public Builder clear() { annotation_ = 0; reasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + accountId_ = ""; hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; transactionEvent_ = null; if (transactionEventBuilder_ != null) { @@ -1364,9 +1424,12 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AnnotateAssessmentR result.annotation_ = annotation_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.hashedAccountId_ = hashedAccountId_; + result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.hashedAccountId_ = hashedAccountId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.transactionEvent_ = transactionEventBuilder_ == null ? transactionEvent_ : transactionEventBuilder_.build(); } @@ -1436,6 +1499,11 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.AnnotateAssessmentReq } onChanged(); } + if (!other.getAccountId().isEmpty()) { + accountId_ = other.accountId_; + bitField0_ |= 0x00000008; + onChanged(); + } if (other.getHashedAccountId() != com.google.protobuf.ByteString.EMPTY) { setHashedAccountId(other.getHashedAccountId()); } @@ -1502,16 +1570,22 @@ public Builder mergeFrom( case 34: { hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getTransactionEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 + case 58: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1778,8 +1852,7 @@ private void ensureReasonsIsMutable() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1798,8 +1871,7 @@ private void ensureReasonsIsMutable() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1815,8 +1887,7 @@ public int getReasonsCount() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1834,8 +1905,7 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getRea * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1860,8 +1930,7 @@ public Builder setReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1885,8 +1954,7 @@ public Builder addReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1911,8 +1979,7 @@ public Builder addAllReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1931,8 +1998,7 @@ public Builder clearReasons() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1948,8 +2014,7 @@ public java.util.List getReasonsValueList() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1966,8 +2031,7 @@ public int getReasonsValue(int index) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1988,8 +2052,7 @@ public Builder setReasonsValue(int index, int value) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -2009,8 +2072,7 @@ public Builder addReasonsValue(int value) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -2029,16 +2091,131 @@ public Builder addAllReasonsValue(java.lang.Iterable values) return this; } + private java.lang.Object accountId_ = ""; + /** + * + * + *
+     * Optional. A stable account identifier to apply to the assessment. This is
+     * an alternative to setting `account_id` in `CreateAssessment`, for example
+     * when a stable account identifier is not yet known in the initial request.
+     * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A stable account identifier to apply to the assessment. This is
+     * an alternative to setting `account_id` in `CreateAssessment`, for example
+     * when a stable account identifier is not yet known in the initial request.
+     * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A stable account identifier to apply to the assessment. This is
+     * an alternative to setting `account_id` in `CreateAssessment`, for example
+     * when a stable account identifier is not yet known in the initial request.
+     * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A stable account identifier to apply to the assessment. This is
+     * an alternative to setting `account_id` in `CreateAssessment`, for example
+     * when a stable account identifier is not yet known in the initial request.
+     * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAccountId() { + accountId_ = getDefaultInstance().getAccountId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A stable account identifier to apply to the assessment. This is
+     * an alternative to setting `account_id` in `CreateAssessment`, for example
+     * when a stable account identifier is not yet known in the initial request.
+     * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-     * Optional. Unique stable hashed user identifier to apply to the assessment.
-     * This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. A stable hashed account identifier to apply to the assessment.
+     * This is an alternative to setting `hashed_account_id` in
+     * `CreateAssessment`, for example when a stable account identifier is not yet
+     * known in the initial request.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2053,11 +2230,10 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * *
-     * Optional. Unique stable hashed user identifier to apply to the assessment.
-     * This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. A stable hashed account identifier to apply to the assessment.
+     * This is an alternative to setting `hashed_account_id` in
+     * `CreateAssessment`, for example when a stable account identifier is not yet
+     * known in the initial request.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2070,7 +2246,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { throw new NullPointerException(); } hashedAccountId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2078,11 +2254,10 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * *
-     * Optional. Unique stable hashed user identifier to apply to the assessment.
-     * This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. A stable hashed account identifier to apply to the assessment.
+     * This is an alternative to setting `hashed_account_id` in
+     * `CreateAssessment`, for example when a stable account identifier is not yet
+     * known in the initial request.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2090,7 +2265,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearHashedAccountId() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); hashedAccountId_ = getDefaultInstance().getHashedAccountId(); onChanged(); return this; @@ -2117,7 +2292,7 @@ public Builder clearHashedAccountId() { * @return Whether the transactionEvent field is set. */ public boolean hasTransactionEvent() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2163,7 +2338,7 @@ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1.Transaction } else { transactionEventBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2186,7 +2361,7 @@ public Builder setTransactionEvent( } else { transactionEventBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2204,7 +2379,7 @@ public Builder setTransactionEvent( */ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.TransactionEvent value) { if (transactionEventBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && transactionEvent_ != null && transactionEvent_ != com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) { @@ -2215,7 +2390,7 @@ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.Transacti } else { transactionEventBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2232,7 +2407,7 @@ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.Transacti *
*/ public Builder clearTransactionEvent() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); transactionEvent_ = null; if (transactionEventBuilder_ != null) { transactionEventBuilder_.dispose(); @@ -2254,7 +2429,7 @@ public Builder clearTransactionEvent() { *
*/ public com.google.recaptchaenterprise.v1.TransactionEvent.Builder getTransactionEventBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getTransactionEventFieldBuilder().getBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java index 7f96e9cbfd6b..1d98e15d6f6c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java @@ -91,8 +91,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -107,8 +106,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -122,8 +120,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -138,8 +135,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -153,8 +149,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -170,11 +165,39 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Unique stable hashed user identifier to apply to the assessment.
-   * This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
+   * Optional. A stable account identifier to apply to the assessment. This is
+   * an alternative to setting `account_id` in `CreateAssessment`, for example
+   * when a stable account identifier is not yet known in the initial request.
+   * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + java.lang.String getAccountId(); + /** + * + * + *
+   * Optional. A stable account identifier to apply to the assessment. This is
+   * an alternative to setting `account_id` in `CreateAssessment`, for example
+   * when a stable account identifier is not yet known in the initial request.
+   * 
+ * + * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + com.google.protobuf.ByteString getAccountIdBytes(); + + /** + * + * + *
+   * Optional. A stable hashed account identifier to apply to the assessment.
+   * This is an alternative to setting `hashed_account_id` in
+   * `CreateAssessment`, for example when a stable account identifier is not yet
+   * known in the initial request.
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java index 56a5f95f2819..1264aef55e0c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java @@ -345,8 +345,8 @@ public com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerif * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * @@ -363,8 +363,8 @@ public boolean hasAccountDefenderAssessment() { * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * @@ -384,8 +384,8 @@ public boolean hasAccountDefenderAssessment() { * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * @@ -2246,8 +2246,8 @@ public Builder clearAccountVerification() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2263,8 +2263,8 @@ public boolean hasAccountDefenderAssessment() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2287,8 +2287,8 @@ public boolean hasAccountDefenderAssessment() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2313,8 +2313,8 @@ public Builder setAccountDefenderAssessment( * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2336,8 +2336,8 @@ public Builder setAccountDefenderAssessment( * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2367,8 +2367,8 @@ public Builder mergeAccountDefenderAssessment( * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2389,8 +2389,8 @@ public Builder clearAccountDefenderAssessment() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2407,8 +2407,8 @@ public Builder clearAccountDefenderAssessment() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * @@ -2429,8 +2429,8 @@ public Builder clearAccountDefenderAssessment() { * * *
-     * Output only. Assessment returned by account defender when a
-     * hashed_account_id is provided.
+     * Output only. Assessment returned by account defender when an account
+     * identifier is provided.
      * 
* * diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java index 31653852aec0..d971171e15e7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java @@ -222,8 +222,8 @@ public interface AssessmentOrBuilder * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * @@ -237,8 +237,8 @@ public interface AssessmentOrBuilder * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * @@ -252,8 +252,8 @@ public interface AssessmentOrBuilder * * *
-   * Output only. Assessment returned by account defender when a
-   * hashed_account_id is provided.
+   * Output only. Assessment returned by account defender when an account
+   * identifier is provided.
    * 
* * diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java index 889c85c7d203..717546d28146 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java @@ -343,15 +343,20 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { * * *
-   * Optional. Unique stable hashed user identifier for the request. The
-   * identifier must be hashed using hmac-sha256 with stable secret.
+   * Optional. Deprecated: use `user_info.account_id` instead.
+   * Unique stable hashed user identifier for the request. The identifier must
+   * be hashed using hmac-sha256 with stable secret.
    * 
* - * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663 * @return The hashedAccountId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } @@ -644,6 +649,71 @@ public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransaction : transactionData_; } + public static final int USER_INFO_FIELD_NUMBER = 15; + private com.google.recaptchaenterprise.v1.UserInfo userInfo_; + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return userInfo_ != null; + } + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -697,6 +767,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (express_ != false) { output.writeBool(14, express_); } + if (userInfo_ != null) { + output.writeMessage(15, getUserInfo()); + } getUnknownFields().writeTo(output); } @@ -750,6 +823,9 @@ public int getSerializedSize() { if (express_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, express_); } + if (userInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUserInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -781,6 +857,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTransactionData()) { if (!getTransactionData().equals(other.getTransactionData())) return false; } + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -822,6 +902,10 @@ public int hashCode() { hash = (37 * hash) + TRANSACTION_DATA_FIELD_NUMBER; hash = (53 * hash) + getTransactionData().hashCode(); } + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -978,6 +1062,11 @@ public Builder clear() { transactionDataBuilder_.dispose(); transactionDataBuilder_ = null; } + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } return this; } @@ -1055,6 +1144,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Event result) { result.transactionData_ = transactionDataBuilder_ == null ? transactionData_ : transactionDataBuilder_.build(); } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + } } @java.lang.Override @@ -1162,6 +1254,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Event other) { if (other.hasTransactionData()) { mergeTransactionData(other.getTransactionData()); } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1267,6 +1362,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 112 + case 122: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1851,15 +1952,21 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Unique stable hashed user identifier for the request. The
-     * identifier must be hashed using hmac-sha256 with stable secret.
+     * Optional. Deprecated: use `user_info.account_id` instead.
+     * Unique stable hashed user identifier for the request. The identifier must
+     * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663 * @return The hashedAccountId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } @@ -1867,15 +1974,21 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * *
-     * Optional. Unique stable hashed user identifier for the request. The
-     * identifier must be hashed using hmac-sha256 with stable secret.
+     * Optional. Deprecated: use `user_info.account_id` instead.
+     * Unique stable hashed user identifier for the request. The identifier must
+     * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663 * @param value The hashedAccountId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setHashedAccountId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1889,14 +2002,20 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * *
-     * Optional. Unique stable hashed user identifier for the request. The
-     * identifier must be hashed using hmac-sha256 with stable secret.
+     * Optional. Deprecated: use `user_info.account_id` instead.
+     * Unique stable hashed user identifier for the request. The identifier must
+     * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearHashedAccountId() { bitField0_ = (bitField0_ & ~0x00000020); hashedAccountId_ = getDefaultInstance().getHashedAccountId(); @@ -2689,6 +2808,234 @@ public com.google.recaptchaenterprise.v1.TransactionData.Builder getTransactionD return transactionDataBuilder_; } + private com.google.recaptchaenterprise.v1.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder> + userInfoBuilder_; + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && userInfo_ != null + && userInfo_ != com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + } + /** + * + * + *
+     * Optional. Information about the user that generates this event, when they
+     * can be identified. They are often identified through the use of an account
+     * for logged-in requests or login/registration requests, or by providing user
+     * identifiers for guest actions like checkout.
+     * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java index d1e71e2fd829..0667d4d3a598 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java @@ -164,14 +164,19 @@ public interface EventOrBuilder * * *
-   * Optional. Unique stable hashed user identifier for the request. The
-   * identifier must be hashed using hmac-sha256 with stable secret.
+   * Optional. Deprecated: use `user_info.account_id` instead.
+   * Unique stable hashed user identifier for the request. The identifier must
+   * be hashed using hmac-sha256 with stable secret.
    * 
* - * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=663 * @return The hashedAccountId. */ + @java.lang.Deprecated com.google.protobuf.ByteString getHashedAccountId(); /** @@ -366,4 +371,54 @@ public interface EventOrBuilder *
*/ com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder(); + + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + com.google.recaptchaenterprise.v1.UserInfo getUserInfo(); + /** + * + * + *
+   * Optional. Information about the user that generates this event, when they
+   * can be identified. They are often identified through the use of an account
+   * for logged-in requests or login/registration requests, or by providing user
+   * identifiers for guest actions like checkout.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java index c8cb5f66a1ab..2fc0fbadb81f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java @@ -83,6 +83,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -345,479 +353,488 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GEBACK\020\014\022\034\n\030CHARGEBACK_REPRESENTMENT\020\r\022\026" + "\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016REFUND_REQUEST" + "\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006REFUND\020\021\022\022\n\016RE" - + "FUND_REVERSE\020\022\"\357\006\n\031AnnotateAssessmentReq" + + "FUND_REVERSE\020\022\"\211\007\n\031AnnotateAssessmentReq" + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-recaptchaen" + "terprise.googleapis.com/Assessment\022c\n\nan" + "notation\030\002 \001(\0162I.google.cloud.recaptchae" + "nterprise.v1.AnnotateAssessmentRequest.A" + "nnotationB\004\342A\001\001\022\\\n\007reasons\030\003 \003(\0162E.googl" + "e.cloud.recaptchaenterprise.v1.AnnotateA" - + "ssessmentRequest.ReasonB\004\342A\001\001\022\037\n\021hashed_" - + "account_id\030\004 \001(\014B\004\342A\001\001\022V\n\021transaction_ev" - + "ent\030\005 \001(\01325.google.cloud.recaptchaenterp" - + "rise.v1.TransactionEventB\004\342A\001\001\"~\n\nAnnota" - + "tion\022\032\n\026ANNOTATION_UNSPECIFIED\020\000\022\016\n\nLEGI" - + "TIMATE\020\001\022\016\n\nFRAUDULENT\020\002\022\030\n\020PASSWORD_COR" - + "RECT\020\003\032\002\010\001\022\032\n\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317" - + "\002\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nCHA" - + "RGEBACK\020\001\022\024\n\020CHARGEBACK_FRAUD\020\010\022\026\n\022CHARG" - + "EBACK_DISPUTE\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FR" - + "AUD\020\013\022\030\n\024TRANSACTION_ACCEPTED\020\014\022\030\n\024TRANS" - + "ACTION_DECLINED\020\r\022\026\n\022PAYMENT_HEURISTICS\020" - + "\002\022\030\n\024INITIATED_TWO_FACTOR\020\007\022\025\n\021PASSED_TW" - + "O_FACTOR\020\003\022\025\n\021FAILED_TWO_FACTOR\020\004\022\024\n\020COR" - + "RECT_PASSWORD\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022" - + "\017\n\013SOCIAL_SPAM\020\016\"\034\n\032AnnotateAssessmentRe" - + "sponse\"\266\001\n\030EndpointVerificationInfo\022\027\n\re" - + "mail_address\030\001 \001(\tH\000\022\026\n\014phone_number\030\002 \001" - + "(\tH\000\022\033\n\rrequest_token\030\003 \001(\tB\004\342A\001\003\022@\n\026las" - + "t_verification_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027Acco" - + "untVerificationInfo\022V\n\tendpoints\030\001 \003(\0132=" - + ".google.cloud.recaptchaenterprise.v1.End" - + "pointVerificationInfoB\004\342A\001\001\022\033\n\rlanguage_" - + "code\030\003 \001(\tB\004\342A\001\001\022m\n\032latest_verification_" - + "result\030\007 \001(\0162C.google.cloud.recaptchaent" - + "erprise.v1.AccountVerificationInfo.Resul" - + "tB\004\342A\001\003\022\024\n\010username\030\002 \001(\tB\002\030\001\"\310\002\n\006Result" - + "\022\026\n\022RESULT_UNSPECIFIED\020\000\022\031\n\025SUCCESS_USER" - + "_VERIFIED\020\001\022\033\n\027ERROR_USER_NOT_VERIFIED\020\002" - + "\022$\n ERROR_SITE_ONBOARDING_INCOMPLETE\020\003\022\037" - + "\n\033ERROR_RECIPIENT_NOT_ALLOWED\020\004\022)\n%ERROR" - + "_RECIPIENT_ABUSE_LIMIT_EXHAUSTED\020\005\022\033\n\027ER" - + "ROR_CRITICAL_INTERNAL\020\006\022\"\n\036ERROR_CUSTOME" - + "R_QUOTA_EXHAUSTED\020\007\022\037\n\033ERROR_VERIFICATIO" - + "N_BYPASSED\020\010\022\032\n\026ERROR_VERDICT_MISMATCH\020\t" - + "\"\320\001\n\037PrivatePasswordLeakVerification\022 \n\022" - + "lookup_hash_prefix\030\001 \001(\014B\004\342A\001\002\022-\n\037encryp" - + "ted_user_credentials_hash\030\002 \001(\014B\004\342A\001\001\022+\n" - + "\035encrypted_leak_match_prefixes\030\003 \003(\014B\004\342A" - + "\001\003\022/\n!reencrypted_user_credentials_hash\030" - + "\004 \001(\014B\004\342A\001\003\"\321\007\n\nAssessment\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\003\022?\n\005event\030\002 \001(\0132*.google.cloud.rec" - + "aptchaenterprise.v1.EventB\004\342A\001\001\022N\n\rrisk_" - + "analysis\030\003 \001(\01321.google.cloud.recaptchae" - + "nterprise.v1.RiskAnalysisB\004\342A\001\003\022T\n\020token" - + "_properties\030\004 \001(\01324.google.cloud.recaptc" - + "haenterprise.v1.TokenPropertiesB\004\342A\001\003\022`\n" - + "\024account_verification\030\005 \001(\0132<.google.clo" - + "ud.recaptchaenterprise.v1.AccountVerific" - + "ationInfoB\004\342A\001\001\022i\n\033account_defender_asse" - + "ssment\030\006 \001(\0132>.google.cloud.recaptchaent" - + "erprise.v1.AccountDefenderAssessmentB\004\342A" - + "\001\003\022v\n\"private_password_leak_verification" - + "\030\010 \001(\0132D.google.cloud.recaptchaenterpris" - + "e.v1.PrivatePasswordLeakVerificationB\004\342A" - + "\001\001\022g\n\032firewall_policy_assessment\030\n \001(\0132=" - + ".google.cloud.recaptchaenterprise.v1.Fir" - + "ewallPolicyAssessmentB\004\342A\001\003\022i\n\033fraud_pre" - + "vention_assessment\030\013 \001(\0132>.google.cloud." - + "recaptchaenterprise.v1.FraudPreventionAs" - + "sessmentB\004\342A\001\003\022N\n\rfraud_signals\030\r \001(\01321." - + "google.cloud.recaptchaenterprise.v1.Frau" - + "dSignalsB\004\342A\001\003:_\352A\\\n-recaptchaenterprise" - + ".googleapis.com/Assessment\022+projects/{pr" - + "oject}/assessments/{assessment}\"\257\003\n\005Even" - + "t\022\023\n\005token\030\001 \001(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\t" - + "B\004\342A\001\001\022\030\n\nuser_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user" - + "_ip_address\030\004 \001(\tB\004\342A\001\001\022\035\n\017expected_acti" - + "on\030\005 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\006 \001(" - + "\014B\004\342A\001\001\022\025\n\007express\030\016 \001(\010B\004\342A\001\001\022\033\n\rreques" - + "ted_uri\030\010 \001(\tB\004\342A\001\001\022\"\n\024waf_token_assessm" - + "ent\030\t \001(\010B\004\342A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007he" - + "aders\030\013 \003(\tB\004\342A\001\001\022(\n\032firewall_policy_eva" - + "luation\030\014 \001(\010B\004\342A\001\001\022T\n\020transaction_data\030" - + "\r \001(\01324.google.cloud.recaptchaenterprise" - + ".v1.TransactionDataB\004\342A\001\001\"\300\n\n\017Transactio" - + "nData\022\033\n\016transaction_id\030\013 \001(\tH\000\210\001\001\022\034\n\016pa" - + "yment_method\030\001 \001(\tB\004\342A\001\001\022\026\n\010card_bin\030\002 \001" - + "(\tB\004\342A\001\001\022\034\n\016card_last_four\030\003 \001(\tB\004\342A\001\001\022\033" - + "\n\rcurrency_code\030\004 \001(\tB\004\342A\001\001\022\023\n\005value\030\005 \001" - + "(\001B\004\342A\001\001\022\034\n\016shipping_value\030\014 \001(\001B\004\342A\001\001\022\\" - + "\n\020shipping_address\030\006 \001(\0132<.google.cloud." - + "recaptchaenterprise.v1.TransactionData.A" - + "ddressB\004\342A\001\001\022[\n\017billing_address\030\007 \001(\0132<." - + "google.cloud.recaptchaenterprise.v1.Tran" - + "sactionData.AddressB\004\342A\001\001\022M\n\004user\030\010 \001(\0132" - + "9.google.cloud.recaptchaenterprise.v1.Tr" - + "ansactionData.UserB\004\342A\001\001\022R\n\tmerchants\030\r " - + "\003(\01329.google.cloud.recaptchaenterprise.v" - + "1.TransactionData.UserB\004\342A\001\001\022N\n\005items\030\016 " - + "\003(\01329.google.cloud.recaptchaenterprise.v" - + "1.TransactionData.ItemB\004\342A\001\001\022\\\n\014gateway_" - + "info\030\n \001(\0132@.google.cloud.recaptchaenter" - + "prise.v1.TransactionData.GatewayInfoB\004\342A" - + "\001\001\032\252\001\n\007Address\022\027\n\trecipient\030\001 \001(\tB\004\342A\001\001\022" - + "\025\n\007address\030\002 \003(\tB\004\342A\001\001\022\026\n\010locality\030\003 \001(\t" - + "B\004\342A\001\001\022!\n\023administrative_area\030\004 \001(\tB\004\342A\001" - + "\001\022\031\n\013region_code\030\005 \001(\tB\004\342A\001\001\022\031\n\013postal_c" - + "ode\030\006 \001(\tB\004\342A\001\001\032\250\001\n\004User\022\030\n\naccount_id\030\006" - + " \001(\tB\004\342A\001\001\022\031\n\013creation_ms\030\001 \001(\003B\004\342A\001\001\022\023\n" - + "\005email\030\002 \001(\tB\004\342A\001\001\022\034\n\016email_verified\030\003 \001" - + "(\010B\004\342A\001\001\022\032\n\014phone_number\030\004 \001(\tB\004\342A\001\001\022\034\n\016" - + "phone_verified\030\005 \001(\010B\004\342A\001\001\032j\n\004Item\022\022\n\004na" - + "me\030\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\001B\004\342A\001\001\022\026\n\010q" - + "uantity\030\003 \001(\003B\004\342A\001\001\022!\n\023merchant_account_" - + "id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013GatewayInfo\022\022\n\004name\030\001" - + " \001(\tB\004\342A\001\001\022#\n\025gateway_response_code\030\002 \001(" - + "\tB\004\342A\001\001\022\037\n\021avs_response_code\030\003 \001(\tB\004\342A\001\001" - + "\022\037\n\021cvv_response_code\030\004 \001(\tB\004\342A\001\001B\021\n\017_tr" - + "ansaction_id\"\226\003\n\014RiskAnalysis\022\023\n\005score\030\001" - + " \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\0162F.google.clo" - + "ud.recaptchaenterprise.v1.RiskAnalysis.C" - + "lassificationReasonB\004\342A\001\003\022&\n\030extended_ve" - + "rdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351\001\n\024Classifica" - + "tionReason\022%\n!CLASSIFICATION_REASON_UNSP" - + "ECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n\026UNEXPECTED_" - + "ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_TRAFFIC\020\003\022\035\n\031U" - + "NEXPECTED_USAGE_PATTERNS\020\004\022\030\n\024LOW_CONFID" - + "ENCE_SCORE\020\005\022\025\n\021SUSPECTED_CARDING\020\006\022\030\n\024S" - + "USPECTED_CHARGEBACK\020\007\"\302\003\n\017TokenPropertie" - + "s\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016invalid_reason" - + "\030\002 \001(\0162B.google.cloud.recaptchaenterpris" - + "e.v1.TokenProperties.InvalidReasonB\004\342A\001\003" - + "\0225\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\022\026\n\010hostname\030\004 \001(\tB\004\342A\001\003\022" - + "\"\n\024android_package_name\030\010 \001(\tB\004\342A\001\003\022\033\n\ri" - + "os_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n\006action\030\005 \001(\t" - + "B\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n\032INVALID_REAS" - + "ON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_INVALID_REAS" - + "ON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE" - + "\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_ERROR\020\006\"\272\004\n\031F" - + "raudPreventionAssessment\022\036\n\020transaction_" - + "risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_instrument_ve" - + "rdict\030\002 \001(\0132V.google.cloud.recaptchaente" - + "rprise.v1.FraudPreventionAssessment.Stol" - + "enInstrumentVerdictB\004\342A\001\003\022u\n\024card_testin" - + "g_verdict\030\003 \001(\0132Q.google.cloud.recaptcha" - + "enterprise.v1.FraudPreventionAssessment." - + "CardTestingVerdictB\004\342A\001\003\022}\n\030behavioral_t" - + "rust_verdict\030\004 \001(\0132U.google.cloud.recapt" - + "chaenterprise.v1.FraudPreventionAssessme" - + "nt.BehavioralTrustVerdictB\004\342A\001\003\032-\n\027Stole" - + "nInstrumentVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003\032(" - + "\n\022CardTestingVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003" - + "\032-\n\026BehavioralTrustVerdict\022\023\n\005trust\030\001 \001(" - + "\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n\014user_signals" - + "\030\001 \001(\0132=.google.cloud.recaptchaenterpris" - + "e.v1.FraudSignals.UserSignalsB\004\342A\001\003\022Y\n\014c" - + "ard_signals\030\002 \001(\0132=.google.cloud.recaptc" - + "haenterprise.v1.FraudSignals.CardSignals" - + "B\004\342A\001\003\032R\n\013UserSignals\022%\n\027active_days_low" - + "er_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016synthetic_risk\030\002" - + " \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022b\n\013card_label" - + "s\030\001 \003(\0162G.google.cloud.recaptchaenterpri" - + "se.v1.FraudSignals.CardSignals.CardLabel" - + "B\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD_LABEL_UNSPEC" - + "IFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIRTUAL\020\002\022\027\n\023UNE" - + "XPECTED_LOCATION\020\003\"\274\002\n\031AccountDefenderAs" - + "sessment\022i\n\006labels\030\001 \003(\0162S.google.cloud." - + "recaptchaenterprise.v1.AccountDefenderAs" - + "sessment.AccountDefenderLabelB\004\342A\001\003\"\263\001\n\024" - + "AccountDefenderLabel\022&\n\"ACCOUNT_DEFENDER" - + "_LABEL_UNSPECIFIED\020\000\022\021\n\rPROFILE_MATCH\020\001\022" - + "\035\n\031SUSPICIOUS_LOGIN_ACTIVITY\020\002\022\037\n\033SUSPIC" - + "IOUS_ACCOUNT_CREATION\020\003\022 \n\034RELATED_ACCOU" - + "NTS_NUMBER_HIGH\020\004\"\225\001\n\020CreateKeyRequest\022D" - + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022;\n\003key\030\002 \001(" - + "\0132(.google.cloud.recaptchaenterprise.v1." - + "KeyB\004\342A\001\002\"\212\001\n\017ListKeysRequest\022D\n\006parent\030" - + "\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goo" - + "gleapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004" - + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"c\n\020ListKe" - + "ysResponse\0226\n\004keys\030\001 \003(\0132(.google.cloud." - + "recaptchaenterprise.v1.Key\022\027\n\017next_page_" - + "token\030\002 \001(\t\"^\n\036RetrieveLegacySecretKeyRe" - + "quest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" - + "terprise.googleapis.com/Key\"N\n\rGetKeyReq" - + "uest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" - + "terprise.googleapis.com/Key\"\206\001\n\020UpdateKe" - + "yRequest\022;\n\003key\030\001 \001(\0132(.google.cloud.rec" - + "aptchaenterprise.v1.KeyB\004\342A\001\002\0225\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" - + "\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n\004name\030\001 \001(\tB/" - + "\342A\001\002\372A(\n&recaptchaenterprise.googleapis." - + "com/Key\"\267\001\n\033CreateFirewallPolicyRequest\022" - + "D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcem" - + "anager.googleapis.com/Project\022R\n\017firewal" - + "l_policy\030\002 \001(\01323.google.cloud.recaptchae" - + "nterprise.v1.FirewallPolicyB\004\342A\001\002\"\226\001\n\033Li" - + "stFirewallPoliciesRequest\022D\n\006parent\030\001 \001(" - + "\tB4\342A\001\002\372A-\n+cloudresourcemanager.googlea" - + "pis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001" - + "\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\207\001\n\034ListFirew" - + "allPoliciesResponse\022N\n\021firewall_policies" - + "\030\001 \003(\01323.google.cloud.recaptchaenterpris" - + "e.v1.FirewallPolicy\022\027\n\017next_page_token\030\002" - + " \001(\t\"d\n\030GetFirewallPolicyRequest\022H\n\004name" - + "\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenterprise.goo" - + "gleapis.com/FirewallPolicy\"\250\001\n\033UpdateFir" - + "ewallPolicyRequest\022R\n\017firewall_policy\030\001 " - + "\001(\01323.google.cloud.recaptchaenterprise.v" - + "1.FirewallPolicyB\004\342A\001\002\0225\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"g\n" - + "\033DeleteFirewallPolicyRequest\022H\n\004name\030\001 \001" - + "(\tB:\342A\001\002\372A3\n1recaptchaenterprise.googlea" - + "pis.com/FirewallPolicy\"t\n\021MigrateKeyRequ" - + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaent" - + "erprise.googleapis.com/Key\022 \n\022skip_billi" - + "ng_check\030\002 \001(\010B\004\342A\001\001\"V\n\021GetMetricsReques" - + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*recaptchaenter" - + "prise.googleapis.com/Metrics\"\301\002\n\007Metrics" - + "\022\022\n\004name\030\004 \001(\tB\004\342A\001\003\022.\n\nstart_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022H\n\rscore_me" - + "trics\030\002 \003(\01321.google.cloud.recaptchaente" - + "rprise.v1.ScoreMetrics\022P\n\021challenge_metr" - + "ics\030\003 \003(\01325.google.cloud.recaptchaenterp" - + "rise.v1.ChallengeMetrics:V\352AS\n*recaptcha" - + "enterprise.googleapis.com/Metrics\022%proje" - + "cts/{project}/keys/{key}/metrics\"<\n\037Retr" - + "ieveLegacySecretKeyResponse\022\031\n\021legacy_se" - + "cret_key\030\001 \001(\t\"\323\005\n\003Key\022\014\n\004name\030\001 \001(\t\022\032\n\014" - + "display_name\030\002 \001(\tB\004\342A\001\002\022K\n\014web_settings" - + "\030\003 \001(\01323.google.cloud.recaptchaenterpris" - + "e.v1.WebKeySettingsH\000\022S\n\020android_setting" - + "s\030\004 \001(\01327.google.cloud.recaptchaenterpri" - + "se.v1.AndroidKeySettingsH\000\022K\n\014ios_settin" - + "gs\030\005 \001(\01323.google.cloud.recaptchaenterpr" - + "ise.v1.IOSKeySettingsH\000\022J\n\006labels\030\006 \003(\0132" - + "4.google.cloud.recaptchaenterprise.v1.Ke" - + "y.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\007 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\022R\n\017te" - + "sting_options\030\t \001(\01323.google.cloud.recap" - + "tchaenterprise.v1.TestingOptionsB\004\342A\001\001\022L" - + "\n\014waf_settings\030\n \001(\01320.google.cloud.reca" - + "ptchaenterprise.v1.WafSettingsB\004\342A\001\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001:J\352AG\n&recaptchaenterprise.googleapis" - + ".com/Key\022\035projects/{project}/keys/{key}B" - + "\023\n\021platform_settings\"\364\001\n\016TestingOptions\022" - + "\033\n\rtesting_score\030\001 \001(\002B\004\342A\001\001\022e\n\021testing_" - + "challenge\030\002 \001(\0162D.google.cloud.recaptcha" - + "enterprise.v1.TestingOptions.TestingChal" - + "lengeB\004\342A\001\001\"^\n\020TestingChallenge\022!\n\035TESTI" - + "NG_CHALLENGE_UNSPECIFIED\020\000\022\r\n\tNOCAPTCHA\020" - + "\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"\251\004\n\016WebKeySe" - + "ttings\022\037\n\021allow_all_domains\030\003 \001(\010B\004\342A\001\001\022" - + "\035\n\017allowed_domains\030\001 \003(\tB\004\342A\001\001\022\037\n\021allow_" - + "amp_traffic\030\002 \001(\010B\004\342A\001\001\022c\n\020integration_t" - + "ype\030\004 \001(\0162C.google.cloud.recaptchaenterp" - + "rise.v1.WebKeySettings.IntegrationTypeB\004" - + "\342A\001\002\022|\n\035challenge_security_preference\030\005 " - + "\001(\0162O.google.cloud.recaptchaenterprise.v" - + "1.WebKeySettings.ChallengeSecurityPrefer" - + "enceB\004\342A\001\001\"[\n\017IntegrationType\022 \n\034INTEGRA" - + "TION_TYPE_UNSPECIFIED\020\000\022\t\n\005SCORE\020\001\022\014\n\010CH" - + "ECKBOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033ChallengeSecu" - + "rityPreference\022-\n)CHALLENGE_SECURITY_PRE" - + "FERENCE_UNSPECIFIED\020\000\022\r\n\tUSABILITY\020\001\022\013\n\007" - + "BALANCE\020\002\022\014\n\010SECURITY\020\003\"\231\001\n\022AndroidKeySe" - + "ttings\022%\n\027allow_all_package_names\030\002 \001(\010B" - + "\004\342A\001\001\022#\n\025allowed_package_names\030\001 \003(\tB\004\342A" - + "\001\001\0227\n)support_non_google_app_store_distr" - + "ibution\030\003 \001(\010B\004\342A\001\001\"\257\001\n\016IOSKeySettings\022\"" - + "\n\024allow_all_bundle_ids\030\002 \001(\010B\004\342A\001\001\022 \n\022al" - + "lowed_bundle_ids\030\001 \003(\tB\004\342A\001\001\022W\n\022apple_de" - + "veloper_id\030\003 \001(\01325.google.cloud.recaptch" - + "aenterprise.v1.AppleDeveloperIdB\004\342A\001\001\"[\n" - + "\020AppleDeveloperId\022\032\n\013private_key\030\001 \001(\tB\005" - + "\342A\002\002\004\022\024\n\006key_id\030\002 \001(\tB\004\342A\001\002\022\025\n\007team_id\030\003" - + " \001(\tB\004\342A\001\002\"\251\001\n\021ScoreDistribution\022_\n\rscor" - + "e_buckets\030\001 \003(\0132H.google.cloud.recaptcha" - + "enterprise.v1.ScoreDistribution.ScoreBuc" - + "ketsEntry\0323\n\021ScoreBucketsEntry\022\013\n\003key\030\001 " - + "\001(\005\022\r\n\005value\030\002 \001(\003:\0028\001\"\253\002\n\014ScoreMetrics\022" - + "O\n\017overall_metrics\030\001 \001(\01326.google.cloud." - + "recaptchaenterprise.v1.ScoreDistribution" - + "\022\\\n\016action_metrics\030\002 \003(\0132D.google.cloud." - + "recaptchaenterprise.v1.ScoreMetrics.Acti" - + "onMetricsEntry\032l\n\022ActionMetricsEntry\022\013\n\003" - + "key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.cloud." - + "recaptchaenterprise.v1.ScoreDistribution" - + ":\0028\001\"o\n\020ChallengeMetrics\022\026\n\016pageload_cou" - + "nt\030\001 \001(\003\022\027\n\017nocaptcha_count\030\002 \001(\003\022\024\n\014fai" - + "led_count\030\003 \001(\003\022\024\n\014passed_count\030\004 \001(\003\"\227\001" - + "\n\030FirewallPolicyAssessment\022\'\n\005error\030\005 \001(" - + "\0132\022.google.rpc.StatusB\004\342A\001\003\022R\n\017firewall_" - + "policy\030\010 \001(\01323.google.cloud.recaptchaent" - + "erprise.v1.FirewallPolicyB\004\342A\001\003\"\357\004\n\016Fire" - + "wallAction\022P\n\005allow\030\001 \001(\0132?.google.cloud" - + ".recaptchaenterprise.v1.FirewallAction.A" - + "llowActionH\000\022P\n\005block\030\002 \001(\0132?.google.clo" - + "ud.recaptchaenterprise.v1.FirewallAction" - + ".BlockActionH\000\022V\n\010redirect\030\005 \001(\0132B.googl" - + "e.cloud.recaptchaenterprise.v1.FirewallA" - + "ction.RedirectActionH\000\022Z\n\nsubstitute\030\003 \001" - + "(\0132D.google.cloud.recaptchaenterprise.v1" - + ".FirewallAction.SubstituteActionH\000\022Y\n\nse" - + "t_header\030\004 \001(\0132C.google.cloud.recaptchae" - + "nterprise.v1.FirewallAction.SetHeaderAct" - + "ionH\000\032\r\n\013AllowAction\032\r\n\013BlockAction\032\020\n\016R" - + "edirectAction\032&\n\020SubstituteAction\022\022\n\004pat" - + "h\030\001 \001(\tB\004\342A\001\001\0329\n\017SetHeaderAction\022\021\n\003key\030" - + "\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\tB\004\342A\001\001B\027\n\025fire" - + "wall_action_oneof\"\240\002\n\016FirewallPolicy\022\014\n\004" - + "name\030\001 \001(\t\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\022\n" - + "\004path\030\004 \001(\tB\004\342A\001\001\022\027\n\tcondition\030\005 \001(\tB\004\342A" - + "\001\001\022J\n\007actions\030\006 \003(\01323.google.cloud.recap" - + "tchaenterprise.v1.FirewallActionB\004\342A\001\001:l" - + "\352Ai\n1recaptchaenterprise.googleapis.com/" - + "FirewallPolicy\0224projects/{project}/firew" - + "allpolicies/{firewallpolicy}\"\271\001\n)ListRel" - + "atedAccountGroupMembershipsRequest\022Y\n\006pa" - + "rent\030\001 \001(\tBI\342A\001\002\372AB\022@recaptchaenterprise" - + ".googleapis.com/RelatedAccountGroupMembe" - + "rship\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_t" - + "oken\030\003 \001(\tB\004\342A\001\001\"\264\001\n*ListRelatedAccountG" - + "roupMembershipsResponse\022m\n!related_accou" - + "nt_group_memberships\030\001 \003(\0132B.google.clou" - + "d.recaptchaenterprise.v1.RelatedAccountG" - + "roupMembership\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\245\001\n\037ListRelatedAccountGroupsRequest\022O\n\006p" - + "arent\030\001 \001(\tB?\342A\001\002\372A8\0226recaptchaenterpris" - + "e.googleapis.com/RelatedAccountGroup\022\027\n\t" - + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" - + "\tB\004\342A\001\001\"\225\001\n ListRelatedAccountGroupsResp" - + "onse\022X\n\026related_account_groups\030\001 \003(\01328.g" - + "oogle.cloud.recaptchaenterprise.v1.Relat" - + "edAccountGroup\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\335\001\n+SearchRelatedAccountGroupMemberships" - + "Request\022Z\n\007project\030\001 \001(\tBI\342A\001\002\372AB\022@recap" - + "tchaenterprise.googleapis.com/RelatedAcc" - + "ountGroupMembership\022\037\n\021hashed_account_id" - + "\030\002 \001(\014B\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n" - + "\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001\n,SearchRelate" - + "dAccountGroupMembershipsResponse\022m\n!rela" - + "ted_account_group_memberships\030\001 \003(\0132B.go" - + "ogle.cloud.recaptchaenterprise.v1.Relate" - + "dAccountGroupMembership\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\264\002\n\035RelatedAccountGroupMembersh" - + "ip\022W\n\004name\030\001 \001(\tBI\342A\001\002\372AB\n@recaptchaente" - + "rprise.googleapis.com/RelatedAccountGrou" - + "pMembership\022\031\n\021hashed_account_id\030\002 \001(\014:\236" - + "\001\352A\232\001\n@recaptchaenterprise.googleapis.co" - + "m/RelatedAccountGroupMembership\022Vproject" - + "s/{project}/relatedaccountgroups/{relate" - + "daccountgroup}/memberships/{membership}\"" - + "\340\001\n\023RelatedAccountGroup\022M\n\004name\030\001 \001(\tB?\342" - + "A\001\002\372A8\n6recaptchaenterprise.googleapis.c" - + "om/RelatedAccountGroup:z\352Aw\n6recaptchaen" - + "terprise.googleapis.com/RelatedAccountGr" - + "oup\022=projects/{project}/relatedaccountgr" - + "oups/{relatedaccountgroup}\"\355\002\n\013WafSettin" - + "gs\022V\n\013waf_service\030\001 \001(\0162;.google.cloud.r" - + "ecaptchaenterprise.v1.WafSettings.WafSer" - + "viceB\004\342A\001\002\022V\n\013waf_feature\030\002 \001(\0162;.google" - + ".cloud.recaptchaenterprise.v1.WafSetting" - + "s.WafFeatureB\004\342A\001\002\"o\n\nWafFeature\022\033\n\027WAF_" - + "FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020" - + "\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013" - + "\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE" - + "_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\346\035\n\032R" - + "ecaptchaEnterpriseService\022\316\001\n\020CreateAsse", - "ssment\022<.google.cloud.recaptchaenterpris" - + "e.v1.CreateAssessmentRequest\032/.google.cl" - + "oud.recaptchaenterprise.v1.Assessment\"K\332" - + "A\021parent,assessment\202\323\344\223\0021\"#/v1/{parent=p" - + "rojects/*}/assessments:\nassessment\022\340\001\n\022A" - + "nnotateAssessment\022>.google.cloud.recaptc" - + "haenterprise.v1.AnnotateAssessmentReques" - + "t\032?.google.cloud.recaptchaenterprise.v1." - + "AnnotateAssessmentResponse\"I\332A\017name,anno" - + "tation\202\323\344\223\0021\",/v1/{name=projects/*/asses" - + "sments/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.go" - + "ogle.cloud.recaptchaenterprise.v1.Create" - + "KeyRequest\032(.google.cloud.recaptchaenter" - + "prise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{" - + "parent=projects/*}/keys:\003key\022\246\001\n\010ListKey" - + "s\0224.google.cloud.recaptchaenterprise.v1." - + "ListKeysRequest\0325.google.cloud.recaptcha" - + "enterprise.v1.ListKeysResponse\"-\332A\006paren" - + "t\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001" - + "\n\027RetrieveLegacySecretKey\022C.google.cloud" - + ".recaptchaenterprise.v1.RetrieveLegacySe" - + "cretKeyRequest\032D.google.cloud.recaptchae" - + "nterprise.v1.RetrieveLegacySecretKeyResp" - + "onse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/" - + "keys/*}:retrieveLegacySecretKey\022\223\001\n\006GetK" - + "ey\0222.google.cloud.recaptchaenterprise.v1" - + ".GetKeyRequest\032(.google.cloud.recaptchae" - + "nterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{na" - + "me=projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.go" - + "ogle.cloud.recaptchaenterprise.v1.Update" - + "KeyRequest\032(.google.cloud.recaptchaenter" - + "prise.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 " - + "/v1/{key.name=projects/*/keys/*}:\003key\022\207\001" - + "\n\tDeleteKey\0225.google.cloud.recaptchaente" - + "rprise.v1.DeleteKeyRequest\032\026.google.prot" - + "obuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=pro" - + "jects/*/keys/*}\022\237\001\n\nMigrateKey\0226.google." - + "cloud.recaptchaenterprise.v1.MigrateKeyR" - + "equest\032(.google.cloud.recaptchaenterpris" - + "e.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/k" - + "eys/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.googl" - + "e.cloud.recaptchaenterprise.v1.GetMetric" - + "sRequest\032,.google.cloud.recaptchaenterpr" - + "ise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name" - + "=projects/*/keys/*/metrics}\022\351\001\n\024CreateFi" - + "rewallPolicy\022@.google.cloud.recaptchaent" - + "erprise.v1.CreateFirewallPolicyRequest\0323" - + ".google.cloud.recaptchaenterprise.v1.Fir" - + "ewallPolicy\"Z\332A\026parent,firewall_policy\202\323" - + "\344\223\002;\"(/v1/{parent=projects/*}/firewallpo" - + "licies:\017firewall_policy\022\326\001\n\024ListFirewall" - + "Policies\022@.google.cloud.recaptchaenterpr" - + "ise.v1.ListFirewallPoliciesRequest\032A.goo" - + "gle.cloud.recaptchaenterprise.v1.ListFir" - + "ewallPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(" - + "/v1/{parent=projects/*}/firewallpolicies" - + "\022\300\001\n\021GetFirewallPolicy\022=.google.cloud.re" - + "captchaenterprise.v1.GetFirewallPolicyRe" - + "quest\0323.google.cloud.recaptchaenterprise" - + ".v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{" - + "name=projects/*/firewallpolicies/*}\022\376\001\n\024" - + "UpdateFirewallPolicy\022@.google.cloud.reca" - + "ptchaenterprise.v1.UpdateFirewallPolicyR" - + "equest\0323.google.cloud.recaptchaenterpris" - + "e.v1.FirewallPolicy\"o\332A\033firewall_policy," - + "update_mask\202\323\344\223\002K28/v1/{firewall_policy." - + "name=projects/*/firewallpolicies/*}:\017fir" - + "ewall_policy\022\251\001\n\024DeleteFirewallPolicy\022@." - + "google.cloud.recaptchaenterprise.v1.Dele" - + "teFirewallPolicyRequest\032\026.google.protobu" - + "f.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projec" - + "ts/*/firewallpolicies/*}\022\346\001\n\030ListRelated" - + "AccountGroups\022D.google.cloud.recaptchaen" - + "terprise.v1.ListRelatedAccountGroupsRequ" - + "est\032E.google.cloud.recaptchaenterprise.v" - + "1.ListRelatedAccountGroupsResponse\"=\332A\006p" - + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" - + "atedaccountgroups\022\222\002\n\"ListRelatedAccount" - + "GroupMemberships\022N.google.cloud.recaptch" - + "aenterprise.v1.ListRelatedAccountGroupMe" - + "mbershipsRequest\032O.google.cloud.recaptch" - + "aenterprise.v1.ListRelatedAccountGroupMe" - + "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" - + "{parent=projects/*/relatedaccountgroups/" - + "*}/memberships\022\262\002\n$SearchRelatedAccountG" - + "roupMemberships\022P.google.cloud.recaptcha" - + "enterprise.v1.SearchRelatedAccountGroupM" - + "embershipsRequest\032Q.google.cloud.recaptc" - + "haenterprise.v1.SearchRelatedAccountGrou" - + "pMembershipsResponse\"e\332A\031project,hashed_" - + "account_id\202\323\344\223\002C\">/v1/{project=projects/" - + "*}/relatedaccountgroupmemberships:search" - + ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\231\002\n!com.google.recaptchaente" - + "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" - + "loud.google.com/go/recaptchaenterprise/v" - + "2/apiv1/recaptchaenterprisepb;recaptchae" - + "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" - + "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" - + "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" - + "aEnterprise::V1b\006proto3" + + "ssessmentRequest.ReasonB\004\342A\001\001\022\030\n\naccount" + + "_id\030\007 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001" + + "(\014B\004\342A\001\001\022V\n\021transaction_event\030\005 \001(\01325.go" + + "ogle.cloud.recaptchaenterprise.v1.Transa" + + "ctionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOTA" + + "TION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nFR" + + "AUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n\022" + + "PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022R" + + "EASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020C" + + "HARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE\020" + + "\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRANS" + + "ACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLINE" + + "D\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATED" + + "_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n\021" + + "FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD\020" + + "\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPAM" + + "\020\016\"\034\n\032AnnotateAssessmentResponse\"\266\001\n\030End" + + "pointVerificationInfo\022\027\n\remail_address\030\001" + + " \001(\tH\000\022\026\n\014phone_number\030\002 \001(\tH\000\022\033\n\rreques" + + "t_token\030\003 \001(\tB\004\342A\001\003\022@\n\026last_verification" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027AccountVerificatio" + + "nInfo\022V\n\tendpoints\030\001 \003(\0132=.google.cloud." + + "recaptchaenterprise.v1.EndpointVerificat" + + "ionInfoB\004\342A\001\001\022\033\n\rlanguage_code\030\003 \001(\tB\004\342A" + + "\001\001\022m\n\032latest_verification_result\030\007 \001(\0162C" + + ".google.cloud.recaptchaenterprise.v1.Acc" + + "ountVerificationInfo.ResultB\004\342A\001\003\022\024\n\010use" + + "rname\030\002 \001(\tB\002\030\001\"\310\002\n\006Result\022\026\n\022RESULT_UNS" + + "PECIFIED\020\000\022\031\n\025SUCCESS_USER_VERIFIED\020\001\022\033\n" + + "\027ERROR_USER_NOT_VERIFIED\020\002\022$\n ERROR_SITE" + + "_ONBOARDING_INCOMPLETE\020\003\022\037\n\033ERROR_RECIPI" + + "ENT_NOT_ALLOWED\020\004\022)\n%ERROR_RECIPIENT_ABU" + + "SE_LIMIT_EXHAUSTED\020\005\022\033\n\027ERROR_CRITICAL_I" + + "NTERNAL\020\006\022\"\n\036ERROR_CUSTOMER_QUOTA_EXHAUS" + + "TED\020\007\022\037\n\033ERROR_VERIFICATION_BYPASSED\020\010\022\032" + + "\n\026ERROR_VERDICT_MISMATCH\020\t\"\320\001\n\037PrivatePa" + + "sswordLeakVerification\022 \n\022lookup_hash_pr" + + "efix\030\001 \001(\014B\004\342A\001\002\022-\n\037encrypted_user_crede" + + "ntials_hash\030\002 \001(\014B\004\342A\001\001\022+\n\035encrypted_lea" + + "k_match_prefixes\030\003 \003(\014B\004\342A\001\003\022/\n!reencryp" + + "ted_user_credentials_hash\030\004 \001(\014B\004\342A\001\003\"\321\007" + + "\n\nAssessment\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022?\n\005even" + + "t\030\002 \001(\0132*.google.cloud.recaptchaenterpri" + + "se.v1.EventB\004\342A\001\001\022N\n\rrisk_analysis\030\003 \001(\013" + + "21.google.cloud.recaptchaenterprise.v1.R" + + "iskAnalysisB\004\342A\001\003\022T\n\020token_properties\030\004 " + + "\001(\01324.google.cloud.recaptchaenterprise.v" + + "1.TokenPropertiesB\004\342A\001\003\022`\n\024account_verif" + + "ication\030\005 \001(\0132<.google.cloud.recaptchaen" + + "terprise.v1.AccountVerificationInfoB\004\342A\001" + + "\001\022i\n\033account_defender_assessment\030\006 \001(\0132>" + + ".google.cloud.recaptchaenterprise.v1.Acc" + + "ountDefenderAssessmentB\004\342A\001\003\022v\n\"private_" + + "password_leak_verification\030\010 \001(\0132D.googl" + + "e.cloud.recaptchaenterprise.v1.PrivatePa" + + "sswordLeakVerificationB\004\342A\001\001\022g\n\032firewall" + + "_policy_assessment\030\n \001(\0132=.google.cloud." + + "recaptchaenterprise.v1.FirewallPolicyAss" + + "essmentB\004\342A\001\003\022i\n\033fraud_prevention_assess" + + "ment\030\013 \001(\0132>.google.cloud.recaptchaenter" + + "prise.v1.FraudPreventionAssessmentB\004\342A\001\003" + + "\022N\n\rfraud_signals\030\r \001(\01321.google.cloud.r" + + "ecaptchaenterprise.v1.FraudSignalsB\004\342A\001\003" + + ":_\352A\\\n-recaptchaenterprise.googleapis.co" + + "m/Assessment\022+projects/{project}/assessm" + + "ents/{assessment}\"\371\003\n\005Event\022\023\n\005token\030\001 \001" + + "(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuser" + + "_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004 " + + "\001(\tB\004\342A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001\001" + + "\022!\n\021hashed_account_id\030\006 \001(\014B\006\030\001\342A\001\001\022\025\n\007e" + + "xpress\030\016 \001(\010B\004\342A\001\001\022\033\n\rrequested_uri\030\010 \001(" + + "\tB\004\342A\001\001\022\"\n\024waf_token_assessment\030\t \001(\010B\004\342" + + "A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007headers\030\013 \003(\tB" + + "\004\342A\001\001\022(\n\032firewall_policy_evaluation\030\014 \001(" + + "\010B\004\342A\001\001\022T\n\020transaction_data\030\r \001(\01324.goog" + + "le.cloud.recaptchaenterprise.v1.Transact" + + "ionDataB\004\342A\001\001\022F\n\tuser_info\030\017 \001(\0132-.googl" + + "e.cloud.recaptchaenterprise.v1.UserInfoB" + + "\004\342A\001\001\"\300\n\n\017TransactionData\022\033\n\016transaction" + + "_id\030\013 \001(\tH\000\210\001\001\022\034\n\016payment_method\030\001 \001(\tB\004" + + "\342A\001\001\022\026\n\010card_bin\030\002 \001(\tB\004\342A\001\001\022\034\n\016card_las" + + "t_four\030\003 \001(\tB\004\342A\001\001\022\033\n\rcurrency_code\030\004 \001(" + + "\tB\004\342A\001\001\022\023\n\005value\030\005 \001(\001B\004\342A\001\001\022\034\n\016shipping" + + "_value\030\014 \001(\001B\004\342A\001\001\022\\\n\020shipping_address\030\006" + + " \001(\0132<.google.cloud.recaptchaenterprise." + + "v1.TransactionData.AddressB\004\342A\001\001\022[\n\017bill" + + "ing_address\030\007 \001(\0132<.google.cloud.recaptc" + + "haenterprise.v1.TransactionData.AddressB" + + "\004\342A\001\001\022M\n\004user\030\010 \001(\01329.google.cloud.recap" + + "tchaenterprise.v1.TransactionData.UserB\004" + + "\342A\001\001\022R\n\tmerchants\030\r \003(\01329.google.cloud.r" + + "ecaptchaenterprise.v1.TransactionData.Us" + + "erB\004\342A\001\001\022N\n\005items\030\016 \003(\01329.google.cloud.r" + + "ecaptchaenterprise.v1.TransactionData.It" + + "emB\004\342A\001\001\022\\\n\014gateway_info\030\n \001(\0132@.google." + + "cloud.recaptchaenterprise.v1.Transaction" + + "Data.GatewayInfoB\004\342A\001\001\032\252\001\n\007Address\022\027\n\tre" + + "cipient\030\001 \001(\tB\004\342A\001\001\022\025\n\007address\030\002 \003(\tB\004\342A" + + "\001\001\022\026\n\010locality\030\003 \001(\tB\004\342A\001\001\022!\n\023administra" + + "tive_area\030\004 \001(\tB\004\342A\001\001\022\031\n\013region_code\030\005 \001" + + "(\tB\004\342A\001\001\022\031\n\013postal_code\030\006 \001(\tB\004\342A\001\001\032\250\001\n\004" + + "User\022\030\n\naccount_id\030\006 \001(\tB\004\342A\001\001\022\031\n\013creati" + + "on_ms\030\001 \001(\003B\004\342A\001\001\022\023\n\005email\030\002 \001(\tB\004\342A\001\001\022\034" + + "\n\016email_verified\030\003 \001(\010B\004\342A\001\001\022\032\n\014phone_nu" + + "mber\030\004 \001(\tB\004\342A\001\001\022\034\n\016phone_verified\030\005 \001(\010" + + "B\004\342A\001\001\032j\n\004Item\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\023\n\005va" + + "lue\030\002 \001(\001B\004\342A\001\001\022\026\n\010quantity\030\003 \001(\003B\004\342A\001\001\022" + + "!\n\023merchant_account_id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013G" + + "atewayInfo\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022#\n\025gatewa" + + "y_response_code\030\002 \001(\tB\004\342A\001\001\022\037\n\021avs_respo" + + "nse_code\030\003 \001(\tB\004\342A\001\001\022\037\n\021cvv_response_cod" + + "e\030\004 \001(\tB\004\342A\001\001B\021\n\017_transaction_id\"\250\001\n\010Use" + + "rInfo\022=\n\023create_account_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\001\022\030\n\naccount_" + + "id\030\002 \001(\tB\004\342A\001\001\022C\n\010user_ids\030\003 \003(\0132+.googl" + + "e.cloud.recaptchaenterprise.v1.UserIdB\004\342" + + "A\001\001\"c\n\006UserId\022\025\n\005email\030\001 \001(\tB\004\342A\001\001H\000\022\034\n\014" + + "phone_number\030\002 \001(\tB\004\342A\001\001H\000\022\030\n\010username\030\003" + + " \001(\tB\004\342A\001\001H\000B\n\n\010id_oneof\"\226\003\n\014RiskAnalysi" + + "s\022\023\n\005score\030\001 \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\0162" + + "F.google.cloud.recaptchaenterprise.v1.Ri" + + "skAnalysis.ClassificationReasonB\004\342A\001\003\022&\n" + + "\030extended_verdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351\001" + + "\n\024ClassificationReason\022%\n!CLASSIFICATION" + + "_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n" + + "\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_TR" + + "AFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022\030" + + "\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_CA" + + "RDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007\"\302\003\n\017To" + + "kenProperties\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016in" + + "valid_reason\030\002 \001(\0162B.google.cloud.recapt" + + "chaenterprise.v1.TokenProperties.Invalid" + + "ReasonB\004\342A\001\003\0225\n\013create_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\022\026\n\010hostname\030" + + "\004 \001(\tB\004\342A\001\003\022\"\n\024android_package_name\030\010 \001(" + + "\tB\004\342A\001\003\022\033\n\rios_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n\006" + + "action\030\005 \001(\tB\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n\032" + + "INVALID_REASON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_" + + "INVALID_REASON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIR" + + "ED\020\003\022\010\n\004DUPE\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_E" + + "RROR\020\006\"\272\004\n\031FraudPreventionAssessment\022\036\n\020" + + "transaction_risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_i" + + "nstrument_verdict\030\002 \001(\0132V.google.cloud.r" + + "ecaptchaenterprise.v1.FraudPreventionAss" + + "essment.StolenInstrumentVerdictB\004\342A\001\003\022u\n" + + "\024card_testing_verdict\030\003 \001(\0132Q.google.clo" + + "ud.recaptchaenterprise.v1.FraudPreventio" + + "nAssessment.CardTestingVerdictB\004\342A\001\003\022}\n\030" + + "behavioral_trust_verdict\030\004 \001(\0132U.google." + + "cloud.recaptchaenterprise.v1.FraudPreven" + + "tionAssessment.BehavioralTrustVerdictB\004\342" + + "A\001\003\032-\n\027StolenInstrumentVerdict\022\022\n\004risk\030\001" + + " \001(\002B\004\342A\001\003\032(\n\022CardTestingVerdict\022\022\n\004risk" + + "\030\001 \001(\002B\004\342A\001\003\032-\n\026BehavioralTrustVerdict\022\023" + + "\n\005trust\030\001 \001(\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n\014" + + "user_signals\030\001 \001(\0132=.google.cloud.recapt" + + "chaenterprise.v1.FraudSignals.UserSignal" + + "sB\004\342A\001\003\022Y\n\014card_signals\030\002 \001(\0132=.google.c" + + "loud.recaptchaenterprise.v1.FraudSignals" + + ".CardSignalsB\004\342A\001\003\032R\n\013UserSignals\022%\n\027act" + + "ive_days_lower_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016synt" + + "hetic_risk\030\002 \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022b" + + "\n\013card_labels\030\001 \003(\0162G.google.cloud.recap" + + "tchaenterprise.v1.FraudSignals.CardSigna" + + "ls.CardLabelB\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD_" + + "LABEL_UNSPECIFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIRT" + + "UAL\020\002\022\027\n\023UNEXPECTED_LOCATION\020\003\"\274\002\n\031Accou" + + "ntDefenderAssessment\022i\n\006labels\030\001 \003(\0162S.g" + + "oogle.cloud.recaptchaenterprise.v1.Accou" + + "ntDefenderAssessment.AccountDefenderLabe" + + "lB\004\342A\001\003\"\263\001\n\024AccountDefenderLabel\022&\n\"ACCO" + + "UNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rPROF" + + "ILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIVITY" + + "\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 \n\034R" + + "ELATED_ACCOUNTS_NUMBER_HIGH\020\004\"\225\001\n\020Create" + + "KeyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clo" + + "udresourcemanager.googleapis.com/Project" + + "\022;\n\003key\030\002 \001(\0132(.google.cloud.recaptchaen" + + "terprise.v1.KeyB\004\342A\001\002\"\212\001\n\017ListKeysReques" + + "t\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourc" + + "emanager.googleapis.com/Project\022\027\n\tpage_" + + "size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A" + + "\001\001\"c\n\020ListKeysResponse\0226\n\004keys\030\001 \003(\0132(.g" + + "oogle.cloud.recaptchaenterprise.v1.Key\022\027" + + "\n\017next_page_token\030\002 \001(\t\"^\n\036RetrieveLegac" + + "ySecretKeyRequest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&recaptchaenterprise.googleapis.com/Key\"" + + "N\n\rGetKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&recaptchaenterprise.googleapis.com/Key\"" + + "\206\001\n\020UpdateKeyRequest\022;\n\003key\030\001 \001(\0132(.goog" + + "le.cloud.recaptchaenterprise.v1.KeyB\004\342A\001" + + "\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\004\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n\004" + + "name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaenterprise" + + ".googleapis.com/Key\"\267\001\n\033CreateFirewallPo" + + "licyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022R\n\017firewall_policy\030\002 \001(\01323.google.clou" + + "d.recaptchaenterprise.v1.FirewallPolicyB" + + "\004\342A\001\002\"\226\001\n\033ListFirewallPoliciesRequest\022D\n" + + "\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourceman" + + "ager.googleapis.com/Project\022\027\n\tpage_size" + + "\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\207" + + "\001\n\034ListFirewallPoliciesResponse\022N\n\021firew" + + "all_policies\030\001 \003(\01323.google.cloud.recapt" + + "chaenterprise.v1.FirewallPolicy\022\027\n\017next_" + + "page_token\030\002 \001(\t\"d\n\030GetFirewallPolicyReq" + + "uest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaen" + + "terprise.googleapis.com/FirewallPolicy\"\250" + + "\001\n\033UpdateFirewallPolicyRequest\022R\n\017firewa" + + "ll_policy\030\001 \001(\01323.google.cloud.recaptcha" + + "enterprise.v1.FirewallPolicyB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\001\"g\n\033DeleteFirewallPolicyRequest" + + "\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenterp" + + "rise.googleapis.com/FirewallPolicy\"t\n\021Mi" + + "grateKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" + + "recaptchaenterprise.googleapis.com/Key\022 " + + "\n\022skip_billing_check\030\002 \001(\010B\004\342A\001\001\"V\n\021GetM" + + "etricsRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*re" + + "captchaenterprise.googleapis.com/Metrics" + + "\"\301\002\n\007Metrics\022\022\n\004name\030\004 \001(\tB\004\342A\001\003\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022H\n\rscore_metrics\030\002 \003(\01321.google.cloud.r" + + "ecaptchaenterprise.v1.ScoreMetrics\022P\n\021ch" + + "allenge_metrics\030\003 \003(\01325.google.cloud.rec" + + "aptchaenterprise.v1.ChallengeMetrics:V\352A" + + "S\n*recaptchaenterprise.googleapis.com/Me" + + "trics\022%projects/{project}/keys/{key}/met" + + "rics\"<\n\037RetrieveLegacySecretKeyResponse\022" + + "\031\n\021legacy_secret_key\030\001 \001(\t\"\323\005\n\003Key\022\014\n\004na" + + "me\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022K\n\014" + + "web_settings\030\003 \001(\01323.google.cloud.recapt" + + "chaenterprise.v1.WebKeySettingsH\000\022S\n\020and" + + "roid_settings\030\004 \001(\01327.google.cloud.recap" + + "tchaenterprise.v1.AndroidKeySettingsH\000\022K" + + "\n\014ios_settings\030\005 \001(\01323.google.cloud.reca" + + "ptchaenterprise.v1.IOSKeySettingsH\000\022J\n\006l" + + "abels\030\006 \003(\01324.google.cloud.recaptchaente" + + "rprise.v1.Key.LabelsEntryB\004\342A\001\001\0225\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\022R\n\017testing_options\030\t \001(\01323.google" + + ".cloud.recaptchaenterprise.v1.TestingOpt" + + "ionsB\004\342A\001\001\022L\n\014waf_settings\030\n \001(\01320.googl" + + "e.cloud.recaptchaenterprise.v1.WafSettin" + + "gsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:J\352AG\n&recaptchaenterpris" + + "e.googleapis.com/Key\022\035projects/{project}" + + "/keys/{key}B\023\n\021platform_settings\"\364\001\n\016Tes" + + "tingOptions\022\033\n\rtesting_score\030\001 \001(\002B\004\342A\001\001" + + "\022e\n\021testing_challenge\030\002 \001(\0162D.google.clo" + + "ud.recaptchaenterprise.v1.TestingOptions" + + ".TestingChallengeB\004\342A\001\001\"^\n\020TestingChalle" + + "nge\022!\n\035TESTING_CHALLENGE_UNSPECIFIED\020\000\022\r" + + "\n\tNOCAPTCHA\020\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"" + + "\251\004\n\016WebKeySettings\022\037\n\021allow_all_domains\030" + + "\003 \001(\010B\004\342A\001\001\022\035\n\017allowed_domains\030\001 \003(\tB\004\342A" + + "\001\001\022\037\n\021allow_amp_traffic\030\002 \001(\010B\004\342A\001\001\022c\n\020i" + + "ntegration_type\030\004 \001(\0162C.google.cloud.rec" + + "aptchaenterprise.v1.WebKeySettings.Integ" + + "rationTypeB\004\342A\001\002\022|\n\035challenge_security_p" + + "reference\030\005 \001(\0162O.google.cloud.recaptcha" + + "enterprise.v1.WebKeySettings.ChallengeSe" + + "curityPreferenceB\004\342A\001\001\"[\n\017IntegrationTyp" + + "e\022 \n\034INTEGRATION_TYPE_UNSPECIFIED\020\000\022\t\n\005S" + + "CORE\020\001\022\014\n\010CHECKBOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033C" + + "hallengeSecurityPreference\022-\n)CHALLENGE_" + + "SECURITY_PREFERENCE_UNSPECIFIED\020\000\022\r\n\tUSA" + + "BILITY\020\001\022\013\n\007BALANCE\020\002\022\014\n\010SECURITY\020\003\"\231\001\n\022" + + "AndroidKeySettings\022%\n\027allow_all_package_" + + "names\030\002 \001(\010B\004\342A\001\001\022#\n\025allowed_package_nam" + + "es\030\001 \003(\tB\004\342A\001\001\0227\n)support_non_google_app" + + "_store_distribution\030\003 \001(\010B\004\342A\001\001\"\257\001\n\016IOSK" + + "eySettings\022\"\n\024allow_all_bundle_ids\030\002 \001(\010" + + "B\004\342A\001\001\022 \n\022allowed_bundle_ids\030\001 \003(\tB\004\342A\001\001" + + "\022W\n\022apple_developer_id\030\003 \001(\01325.google.cl" + + "oud.recaptchaenterprise.v1.AppleDevelope" + + "rIdB\004\342A\001\001\"[\n\020AppleDeveloperId\022\032\n\013private" + + "_key\030\001 \001(\tB\005\342A\002\002\004\022\024\n\006key_id\030\002 \001(\tB\004\342A\001\002\022" + + "\025\n\007team_id\030\003 \001(\tB\004\342A\001\002\"\251\001\n\021ScoreDistribu" + + "tion\022_\n\rscore_buckets\030\001 \003(\0132H.google.clo" + + "ud.recaptchaenterprise.v1.ScoreDistribut" + + "ion.ScoreBucketsEntry\0323\n\021ScoreBucketsEnt" + + "ry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\003:\0028\001\"\253\002\n\014S" + + "coreMetrics\022O\n\017overall_metrics\030\001 \001(\01326.g" + + "oogle.cloud.recaptchaenterprise.v1.Score" + + "Distribution\022\\\n\016action_metrics\030\002 \003(\0132D.g" + + "oogle.cloud.recaptchaenterprise.v1.Score" + + "Metrics.ActionMetricsEntry\032l\n\022ActionMetr" + + "icsEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.g" + + "oogle.cloud.recaptchaenterprise.v1.Score" + + "Distribution:\0028\001\"o\n\020ChallengeMetrics\022\026\n\016" + + "pageload_count\030\001 \001(\003\022\027\n\017nocaptcha_count\030" + + "\002 \001(\003\022\024\n\014failed_count\030\003 \001(\003\022\024\n\014passed_co" + + "unt\030\004 \001(\003\"\227\001\n\030FirewallPolicyAssessment\022\'" + + "\n\005error\030\005 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\022" + + "R\n\017firewall_policy\030\010 \001(\01323.google.cloud." + + "recaptchaenterprise.v1.FirewallPolicyB\004\342" + + "A\001\003\"\357\004\n\016FirewallAction\022P\n\005allow\030\001 \001(\0132?." + + "google.cloud.recaptchaenterprise.v1.Fire" + + "wallAction.AllowActionH\000\022P\n\005block\030\002 \001(\0132" + + "?.google.cloud.recaptchaenterprise.v1.Fi" + + "rewallAction.BlockActionH\000\022V\n\010redirect\030\005" + + " \001(\0132B.google.cloud.recaptchaenterprise." + + "v1.FirewallAction.RedirectActionH\000\022Z\n\nsu" + + "bstitute\030\003 \001(\0132D.google.cloud.recaptchae" + + "nterprise.v1.FirewallAction.SubstituteAc" + + "tionH\000\022Y\n\nset_header\030\004 \001(\0132C.google.clou" + + "d.recaptchaenterprise.v1.FirewallAction." + + "SetHeaderActionH\000\032\r\n\013AllowAction\032\r\n\013Bloc" + + "kAction\032\020\n\016RedirectAction\032&\n\020SubstituteA" + + "ction\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\0329\n\017SetHeaderAc" + + "tion\022\021\n\003key\030\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\tB\004" + + "\342A\001\001B\027\n\025firewall_action_oneof\"\240\002\n\016Firewa" + + "llPolicy\022\014\n\004name\030\001 \001(\t\022\031\n\013description\030\002 " + + "\001(\tB\004\342A\001\001\022\022\n\004path\030\004 \001(\tB\004\342A\001\001\022\027\n\tconditi" + + "on\030\005 \001(\tB\004\342A\001\001\022J\n\007actions\030\006 \003(\01323.google" + + ".cloud.recaptchaenterprise.v1.FirewallAc" + + "tionB\004\342A\001\001:l\352Ai\n1recaptchaenterprise.goo" + + "gleapis.com/FirewallPolicy\0224projects/{pr" + + "oject}/firewallpolicies/{firewallpolicy}" + + "\"\271\001\n)ListRelatedAccountGroupMembershipsR" + + "equest\022Y\n\006parent\030\001 \001(\tBI\342A\001\002\372AB\022@recaptc" + + "haenterprise.googleapis.com/RelatedAccou" + + "ntGroupMembership\022\027\n\tpage_size\030\002 \001(\005B\004\342A" + + "\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\264\001\n*ListRel" + + "atedAccountGroupMembershipsResponse\022m\n!r" + + "elated_account_group_memberships\030\001 \003(\0132B" + + ".google.cloud.recaptchaenterprise.v1.Rel" + + "atedAccountGroupMembership\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\245\001\n\037ListRelatedAccountGroups" + + "Request\022O\n\006parent\030\001 \001(\tB?\342A\001\002\372A8\0226recapt" + + "chaenterprise.googleapis.com/RelatedAcco" + + "untGroup\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npag" + + "e_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n ListRelatedAccou" + + "ntGroupsResponse\022X\n\026related_account_grou" + + "ps\030\001 \003(\01328.google.cloud.recaptchaenterpr" + + "ise.v1.RelatedAccountGroup\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\335\001\n+SearchRelatedAccountGrou" + + "pMembershipsRequest\022Z\n\007project\030\001 \001(\tBI\342A" + + "\001\002\372AB\022@recaptchaenterprise.googleapis.co" + + "m/RelatedAccountGroupMembership\022\037\n\021hashe" + + "d_account_id\030\002 \001(\014B\004\342A\001\001\022\027\n\tpage_size\030\003 " + + "\001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001\n," + + "SearchRelatedAccountGroupMembershipsResp" + + "onse\022m\n!related_account_group_membership" + + "s\030\001 \003(\0132B.google.cloud.recaptchaenterpri" + + "se.v1.RelatedAccountGroupMembership\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\264\002\n\035RelatedAccountG" + + "roupMembership\022W\n\004name\030\001 \001(\tBI\342A\001\002\372AB\n@r" + + "ecaptchaenterprise.googleapis.com/Relate" + + "dAccountGroupMembership\022\031\n\021hashed_accoun" + + "t_id\030\002 \001(\014:\236\001\352A\232\001\n@recaptchaenterprise.g" + + "oogleapis.com/RelatedAccountGroupMembers" + + "hip\022Vprojects/{project}/relatedaccountgr" + + "oups/{relatedaccountgroup}/memberships/{" + + "membership}\"\340\001\n\023RelatedAccountGroup\022M\n\004n" + + "ame\030\001 \001(\tB?\342A\001\002\372A8\n6recaptchaenterprise." + + "googleapis.com/RelatedAccountGroup:z\352Aw\n" + + "6recaptchaenterprise.googleapis.com/Rela" + + "tedAccountGroup\022=projects/{project}/rela" + + "tedaccountgroups/{relatedaccountgroup}\"\355" + + "\002\n\013WafSettings\022V\n\013waf_service\030\001 \001(\0162;.go", + "ogle.cloud.recaptchaenterprise.v1.WafSet" + + "tings.WafServiceB\004\342A\001\002\022V\n\013waf_feature\030\002 " + + "\001(\0162;.google.cloud.recaptchaenterprise.v" + + "1.WafSettings.WafFeatureB\004\342A\001\002\"o\n\nWafFea" + + "ture\022\033\n\027WAF_FEATURE_UNSPECIFIED\020\000\022\022\n\016CHA" + + "LLENGE_PAGE\020\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTI" + + "ON_TOKEN\020\003\022\013\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n" + + "\027WAF_SERVICE_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FA" + + "STLY\020\0032\346\035\n\032RecaptchaEnterpriseService\022\316\001" + + "\n\020CreateAssessment\022<.google.cloud.recapt" + + "chaenterprise.v1.CreateAssessmentRequest" + + "\032/.google.cloud.recaptchaenterprise.v1.A" + + "ssessment\"K\332A\021parent,assessment\202\323\344\223\0021\"#/" + + "v1/{parent=projects/*}/assessments:\nasse" + + "ssment\022\340\001\n\022AnnotateAssessment\022>.google.c" + + "loud.recaptchaenterprise.v1.AnnotateAsse" + + "ssmentRequest\032?.google.cloud.recaptchaen" + + "terprise.v1.AnnotateAssessmentResponse\"I" + + "\332A\017name,annotation\202\323\344\223\0021\",/v1/{name=proj" + + "ects/*/assessments/*}:annotate:\001*\022\244\001\n\tCr" + + "eateKey\0225.google.cloud.recaptchaenterpri" + + "se.v1.CreateKeyRequest\032(.google.cloud.re" + + "captchaenterprise.v1.Key\"6\332A\nparent,key\202" + + "\323\344\223\002#\"\034/v1/{parent=projects/*}/keys:\003key" + + "\022\246\001\n\010ListKeys\0224.google.cloud.recaptchaen" + + "terprise.v1.ListKeysRequest\0325.google.clo" + + "ud.recaptchaenterprise.v1.ListKeysRespon" + + "se\"-\332A\006parent\202\323\344\223\002\036\022\034/v1/{parent=project" + + "s/*}/keys\022\347\001\n\027RetrieveLegacySecretKey\022C." + + "google.cloud.recaptchaenterprise.v1.Retr" + + "ieveLegacySecretKeyRequest\032D.google.clou" + + "d.recaptchaenterprise.v1.RetrieveLegacyS" + + "ecretKeyResponse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key" + + "=projects/*/keys/*}:retrieveLegacySecret" + + "Key\022\223\001\n\006GetKey\0222.google.cloud.recaptchae" + + "nterprise.v1.GetKeyRequest\032(.google.clou" + + "d.recaptchaenterprise.v1.Key\"+\332A\004name\202\323\344" + + "\223\002\036\022\034/v1/{name=projects/*/keys/*}\022\255\001\n\tUp" + + "dateKey\0225.google.cloud.recaptchaenterpri" + + "se.v1.UpdateKeyRequest\032(.google.cloud.re" + + "captchaenterprise.v1.Key\"?\332A\017key,update_" + + "mask\202\323\344\223\002\'2 /v1/{key.name=projects/*/key" + + "s/*}:\003key\022\207\001\n\tDeleteKey\0225.google.cloud.r" + + "ecaptchaenterprise.v1.DeleteKeyRequest\032\026" + + ".google.protobuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/" + + "v1/{name=projects/*/keys/*}\022\237\001\n\nMigrateK" + + "ey\0226.google.cloud.recaptchaenterprise.v1" + + ".MigrateKeyRequest\032(.google.cloud.recapt" + + "chaenterprise.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=" + + "projects/*/keys/*}:migrate:\001*\022\247\001\n\nGetMet" + + "rics\0226.google.cloud.recaptchaenterprise." + + "v1.GetMetricsRequest\032,.google.cloud.reca" + + "ptchaenterprise.v1.Metrics\"3\332A\004name\202\323\344\223\002" + + "&\022$/v1/{name=projects/*/keys/*/metrics}\022" + + "\351\001\n\024CreateFirewallPolicy\022@.google.cloud." + + "recaptchaenterprise.v1.CreateFirewallPol" + + "icyRequest\0323.google.cloud.recaptchaenter" + + "prise.v1.FirewallPolicy\"Z\332A\026parent,firew" + + "all_policy\202\323\344\223\002;\"(/v1/{parent=projects/*" + + "}/firewallpolicies:\017firewall_policy\022\326\001\n\024" + + "ListFirewallPolicies\022@.google.cloud.reca" + + "ptchaenterprise.v1.ListFirewallPoliciesR" + + "equest\032A.google.cloud.recaptchaenterpris" + + "e.v1.ListFirewallPoliciesResponse\"9\332A\006pa" + + "rent\202\323\344\223\002*\022(/v1/{parent=projects/*}/fire" + + "wallpolicies\022\300\001\n\021GetFirewallPolicy\022=.goo" + + "gle.cloud.recaptchaenterprise.v1.GetFire" + + "wallPolicyRequest\0323.google.cloud.recaptc" + + "haenterprise.v1.FirewallPolicy\"7\332A\004name\202" + + "\323\344\223\002*\022(/v1/{name=projects/*/firewallpoli" + + "cies/*}\022\376\001\n\024UpdateFirewallPolicy\022@.googl" + + "e.cloud.recaptchaenterprise.v1.UpdateFir" + + "ewallPolicyRequest\0323.google.cloud.recapt" + + "chaenterprise.v1.FirewallPolicy\"o\332A\033fire" + + "wall_policy,update_mask\202\323\344\223\002K28/v1/{fire" + + "wall_policy.name=projects/*/firewallpoli" + + "cies/*}:\017firewall_policy\022\251\001\n\024DeleteFirew" + + "allPolicy\022@.google.cloud.recaptchaenterp" + + "rise.v1.DeleteFirewallPolicyRequest\032\026.go" + + "ogle.protobuf.Empty\"7\332A\004name\202\323\344\223\002**(/v1/" + + "{name=projects/*/firewallpolicies/*}\022\346\001\n" + + "\030ListRelatedAccountGroups\022D.google.cloud" + + ".recaptchaenterprise.v1.ListRelatedAccou" + + "ntGroupsRequest\032E.google.cloud.recaptcha" + + "enterprise.v1.ListRelatedAccountGroupsRe" + + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*}/relatedaccountgroups\022\222\002\n\"ListRe" + + "latedAccountGroupMemberships\022N.google.cl" + + "oud.recaptchaenterprise.v1.ListRelatedAc" + + "countGroupMembershipsRequest\032O.google.cl" + + "oud.recaptchaenterprise.v1.ListRelatedAc" + + "countGroupMembershipsResponse\"K\332A\006parent" + + "\202\323\344\223\002<\022:/v1/{parent=projects/*/relatedac" + + "countgroups/*}/memberships\022\262\002\n$SearchRel" + + "atedAccountGroupMemberships\022P.google.clo" + + "ud.recaptchaenterprise.v1.SearchRelatedA" + + "ccountGroupMembershipsRequest\032Q.google.c" + + "loud.recaptchaenterprise.v1.SearchRelate" + + "dAccountGroupMembershipsResponse\"e\332A\031pro" + + "ject,hashed_account_id\202\323\344\223\002C\">/v1/{proje" + + "ct=projects/*}/relatedaccountgroupmember" + + "ships:search:\001*\032V\312A\"recaptchaenterprise." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\231\002\n!com.google.r" + + "ecaptchaenterprise.v1B\030RecaptchaEnterpri" + + "seProtoP\001Z\\cloud.google.com/go/recaptcha" + + "enterprise/v2/apiv1/recaptchaenterprisep" + + "b;recaptchaenterprisepb\242\002\004GCRE\252\002#Google." + + "Cloud.RecaptchaEnterprise.V1\312\002#Google\\Cl" + + "oud\\RecaptchaEnterprise\\V1\352\002&Google::Clo" + + "ud::RecaptchaEnterprise::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -854,7 +871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor, new java.lang.String[] { - "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", + "Name", "Annotation", "Reasons", "AccountId", "HashedAccountId", "TransactionEvent", }); internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor = getDescriptor().getMessageTypes().get(3); @@ -925,6 +942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Headers", "FirewallPolicyEvaluation", "TransactionData", + "UserInfo", }); internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor = getDescriptor().getMessageTypes().get(9); @@ -987,8 +1005,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", }); - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor, + new java.lang.String[] { + "CreateAccountTime", "AccountId", "UserIds", + }); + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor, + new java.lang.String[] { + "Email", "PhoneNumber", "Username", "IdOneof", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor, @@ -996,7 +1030,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Score", "Reasons", "ExtendedVerdictReasons", }); internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor, @@ -1010,7 +1044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Action", }); internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor, @@ -1051,7 +1085,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Trust", }); internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor, @@ -1079,7 +1113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CardLabels", }); internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, @@ -1087,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", }); internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, @@ -1095,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Key", }); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, @@ -1103,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, @@ -1111,7 +1145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Keys", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, @@ -1119,7 +1153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", }); internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, @@ -1127,7 +1161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, @@ -1135,7 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "UpdateMask", }); internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, @@ -1143,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, @@ -1151,7 +1185,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirewallPolicy", }); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, @@ -1159,7 +1193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, @@ -1167,7 +1201,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicies", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, @@ -1175,7 +1209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, @@ -1183,7 +1217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "UpdateMask", }); internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, @@ -1191,7 +1225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, @@ -1199,7 +1233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SkipBillingCheck", }); internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, @@ -1207,7 +1241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, @@ -1215,7 +1249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", }); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, @@ -1223,7 +1257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LegacySecretKey", }); internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, @@ -1248,7 +1282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, @@ -1256,7 +1290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TestingScore", "TestingChallenge", }); internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, @@ -1268,7 +1302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChallengeSecurityPreference", }); internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, @@ -1276,7 +1310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", }); internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, @@ -1284,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", }); internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, @@ -1292,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateKey", "KeyId", "TeamId", }); internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, @@ -1310,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, @@ -1328,7 +1362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, @@ -1336,7 +1370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, @@ -1344,7 +1378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Error", "FirewallPolicy", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, @@ -1396,7 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, @@ -1404,7 +1438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Description", "Path", "Condition", "Actions", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, @@ -1412,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, @@ -1420,7 +1454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroupMemberships", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, @@ -1428,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, @@ -1436,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroups", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, @@ -1444,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "HashedAccountId", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, @@ -1452,7 +1486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroupMemberships", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, @@ -1460,7 +1494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HashedAccountId", }); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, @@ -1468,7 +1502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java new file mode 100644 index 000000000000..188d7d9bdede --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java @@ -0,0 +1,1239 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +/** + * + * + *
+ * An identifier associated with a user.
+ * 
+ * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserId} + */ +public final class UserId extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UserId) + UserIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserId.newBuilder() to construct. + private UserId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserId() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.UserId.class, + com.google.recaptchaenterprise.v1.UserId.Builder.class); + } + + private int idOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object idOneof_; + + public enum IdOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EMAIL(1), + PHONE_NUMBER(2), + USERNAME(3), + IDONEOF_NOT_SET(0); + private final int value; + + private IdOneofCase(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 IdOneofCase valueOf(int value) { + return forNumber(value); + } + + public static IdOneofCase forNumber(int value) { + switch (value) { + case 1: + return EMAIL; + case 2: + return PHONE_NUMBER; + case 3: + return USERNAME; + case 0: + return IDONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IdOneofCase getIdOneofCase() { + return IdOneofCase.forNumber(idOneofCase_); + } + + public static final int EMAIL_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + public boolean hasEmail() { + return idOneofCase_ == 1; + } + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = ""; + if (idOneofCase_ == 1) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 1) { + idOneof_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 1) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 1) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phoneNumber field is set. + */ + public boolean hasPhoneNumber() { + return idOneofCase_ == 2; + } + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (idOneofCase_ == 2) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 2) { + idOneof_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 2) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 2) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERNAME_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the username field is set. + */ + public boolean hasUsername() { + return idOneofCase_ == 3; + } + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = ""; + if (idOneofCase_ == 3) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 3) { + idOneof_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 3) { + ref = idOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 3) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (idOneofCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, idOneof_); + } + if (idOneofCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idOneof_); + } + if (idOneofCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, idOneof_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idOneofCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, idOneof_); + } + if (idOneofCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, idOneof_); + } + if (idOneofCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, idOneof_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.recaptchaenterprise.v1.UserId)) { + return super.equals(obj); + } + com.google.recaptchaenterprise.v1.UserId other = (com.google.recaptchaenterprise.v1.UserId) obj; + + if (!getIdOneofCase().equals(other.getIdOneofCase())) return false; + switch (idOneofCase_) { + case 1: + if (!getEmail().equals(other.getEmail())) return false; + break; + case 2: + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + break; + case 3: + if (!getUsername().equals(other.getUsername())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (idOneofCase_) { + case 1: + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + break; + case 2: + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + break; + case 3: + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserId parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UserId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An identifier associated with a user.
+   * 
+ * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UserId) + com.google.recaptchaenterprise.v1.UserIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.UserId.class, + com.google.recaptchaenterprise.v1.UserId.Builder.class); + } + + // Construct using com.google.recaptchaenterprise.v1.UserId.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + idOneofCase_ = 0; + idOneof_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserId getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.UserId.getDefaultInstance(); + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserId build() { + com.google.recaptchaenterprise.v1.UserId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserId buildPartial() { + com.google.recaptchaenterprise.v1.UserId result = + new com.google.recaptchaenterprise.v1.UserId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.recaptchaenterprise.v1.UserId result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.recaptchaenterprise.v1.UserId result) { + result.idOneofCase_ = idOneofCase_; + result.idOneof_ = this.idOneof_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.recaptchaenterprise.v1.UserId) { + return mergeFrom((com.google.recaptchaenterprise.v1.UserId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.recaptchaenterprise.v1.UserId other) { + if (other == com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()) return this; + switch (other.getIdOneofCase()) { + case EMAIL: + { + idOneofCase_ = 1; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case PHONE_NUMBER: + { + idOneofCase_ = 2; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case USERNAME: + { + idOneofCase_ = 3; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case IDONEOF_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 1; + idOneof_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 2; + idOneof_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 3; + idOneof_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int idOneofCase_ = 0; + private java.lang.Object idOneof_; + + public IdOneofCase getIdOneofCase() { + return IdOneofCase.forNumber(idOneofCase_); + } + + public Builder clearIdOneof() { + idOneofCase_ = 0; + idOneof_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + @java.lang.Override + public boolean hasEmail() { + return idOneofCase_ == 1; + } + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = ""; + if (idOneofCase_ == 1) { + ref = idOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 1) { + idOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 1) { + ref = idOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 1) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + idOneofCase_ = 1; + idOneof_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + if (idOneofCase_ == 1) { + idOneofCase_ = 0; + idOneof_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. An email address.
+     * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + idOneofCase_ = 1; + idOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phoneNumber field is set. + */ + @java.lang.Override + public boolean hasPhoneNumber() { + return idOneofCase_ == 2; + } + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (idOneofCase_ == 2) { + ref = idOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 2) { + idOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 2) { + ref = idOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 2) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + idOneofCase_ = 2; + idOneof_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + if (idOneofCase_ == 2) { + idOneofCase_ = 0; + idOneof_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. A phone number. Should use the E.164 format.
+     * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + idOneofCase_ = 2; + idOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the username field is set. + */ + @java.lang.Override + public boolean hasUsername() { + return idOneofCase_ == 3; + } + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = ""; + if (idOneofCase_ == 3) { + ref = idOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idOneofCase_ == 3) { + idOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = ""; + if (idOneofCase_ == 3) { + ref = idOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (idOneofCase_ == 3) { + idOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + idOneofCase_ = 3; + idOneof_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + if (idOneofCase_ == 3) { + idOneofCase_ = 0; + idOneof_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. A unique username, if different from all the other identifiers
+     * and `account_id` that are provided. Can be a unique login handle or
+     * display name for a user.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + idOneofCase_ = 3; + idOneof_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UserId) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UserId) + private static final com.google.recaptchaenterprise.v1.UserId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UserId(); + } + + public static com.google.recaptchaenterprise.v1.UserId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java new file mode 100644 index 000000000000..8eab5ed86a8d --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface UserIdOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UserId) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + boolean hasEmail(); + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+   * Optional. An email address.
+   * 
+ * + * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phoneNumber field is set. + */ + boolean hasPhoneNumber(); + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + * + * + *
+   * Optional. A phone number. Should use the E.164 format.
+   * 
+ * + * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); + + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the username field is set. + */ + boolean hasUsername(); + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Optional. A unique username, if different from all the other identifiers
+   * and `account_id` that are provided. Can be a unique login handle or
+   * display name for a user.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + com.google.recaptchaenterprise.v1.UserId.IdOneofCase getIdOneofCase(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java new file mode 100644 index 000000000000..3b403c905c86 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java @@ -0,0 +1,1505 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +/** + * + * + *
+ * User information associated with a request protected by reCAPTCHA Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserInfo} + */ +public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UserInfo) + UserInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfo.newBuilder() to construct. + private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserInfo() { + accountId_ = ""; + userIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.UserInfo.class, + com.google.recaptchaenterprise.v1.UserInfo.Builder.class); + } + + public static final int CREATE_ACCOUNT_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createAccountTime_; + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createAccountTime field is set. + */ + @java.lang.Override + public boolean hasCreateAccountTime() { + return createAccountTime_ != null; + } + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createAccountTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateAccountTime() { + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; + } + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() { + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; + } + + public static final int ACCOUNT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountId_ = ""; + /** + * + * + *
+   * Optional. For logged-in requests or login/registration requests, the unique
+   * account identifier associated with this user. You can use the username if
+   * it is stable (meaning it is the same for every request associated with the
+   * same user), or any stable user ID of your choice. Leave blank for non
+   * logged-in actions or guest checkout.
+   * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + @java.lang.Override + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. For logged-in requests or login/registration requests, the unique
+   * account identifier associated with this user. You can use the username if
+   * it is stable (meaning it is the same for every request associated with the
+   * same user), or any stable user ID of your choice. Leave blank for non
+   * logged-in actions or guest checkout.
+   * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_IDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List userIds_; + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getUserIdsList() { + return userIds_; + } + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getUserIdsOrBuilderList() { + return userIds_; + } + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getUserIdsCount() { + return userIds_.size(); + } + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserId getUserIds(int index) { + return userIds_.get(index); + } + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index) { + return userIds_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (createAccountTime_ != null) { + output.writeMessage(1, getCreateAccountTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accountId_); + } + for (int i = 0; i < userIds_.size(); i++) { + output.writeMessage(3, userIds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createAccountTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateAccountTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accountId_); + } + for (int i = 0; i < userIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, userIds_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.recaptchaenterprise.v1.UserInfo)) { + return super.equals(obj); + } + com.google.recaptchaenterprise.v1.UserInfo other = + (com.google.recaptchaenterprise.v1.UserInfo) obj; + + if (hasCreateAccountTime() != other.hasCreateAccountTime()) return false; + if (hasCreateAccountTime()) { + if (!getCreateAccountTime().equals(other.getCreateAccountTime())) return false; + } + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getUserIdsList().equals(other.getUserIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateAccountTime()) { + hash = (37 * hash) + CREATE_ACCOUNT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateAccountTime().hashCode(); + } + hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountId().hashCode(); + if (getUserIdsCount() > 0) { + hash = (37 * hash) + USER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUserIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UserInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User information associated with a request protected by reCAPTCHA Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UserInfo) + com.google.recaptchaenterprise.v1.UserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.UserInfo.class, + com.google.recaptchaenterprise.v1.UserInfo.Builder.class); + } + + // Construct using com.google.recaptchaenterprise.v1.UserInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createAccountTime_ = null; + if (createAccountTimeBuilder_ != null) { + createAccountTimeBuilder_.dispose(); + createAccountTimeBuilder_ = null; + } + accountId_ = ""; + if (userIdsBuilder_ == null) { + userIds_ = java.util.Collections.emptyList(); + } else { + userIds_ = null; + userIdsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfo getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfo build() { + com.google.recaptchaenterprise.v1.UserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfo buildPartial() { + com.google.recaptchaenterprise.v1.UserInfo result = + new com.google.recaptchaenterprise.v1.UserInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.UserInfo result) { + if (userIdsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + userIds_ = java.util.Collections.unmodifiableList(userIds_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.userIds_ = userIds_; + } else { + result.userIds_ = userIdsBuilder_.build(); + } + } + + private void buildPartial0(com.google.recaptchaenterprise.v1.UserInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createAccountTime_ = + createAccountTimeBuilder_ == null + ? createAccountTime_ + : createAccountTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accountId_ = accountId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.recaptchaenterprise.v1.UserInfo) { + return mergeFrom((com.google.recaptchaenterprise.v1.UserInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.recaptchaenterprise.v1.UserInfo other) { + if (other == com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance()) return this; + if (other.hasCreateAccountTime()) { + mergeCreateAccountTime(other.getCreateAccountTime()); + } + if (!other.getAccountId().isEmpty()) { + accountId_ = other.accountId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (userIdsBuilder_ == null) { + if (!other.userIds_.isEmpty()) { + if (userIds_.isEmpty()) { + userIds_ = other.userIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUserIdsIsMutable(); + userIds_.addAll(other.userIds_); + } + onChanged(); + } + } else { + if (!other.userIds_.isEmpty()) { + if (userIdsBuilder_.isEmpty()) { + userIdsBuilder_.dispose(); + userIdsBuilder_ = null; + userIds_ = other.userIds_; + bitField0_ = (bitField0_ & ~0x00000004); + userIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserIdsFieldBuilder() + : null; + } else { + userIdsBuilder_.addAllMessages(other.userIds_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCreateAccountTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.recaptchaenterprise.v1.UserId m = + input.readMessage( + com.google.recaptchaenterprise.v1.UserId.parser(), extensionRegistry); + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.add(m); + } else { + userIdsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createAccountTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createAccountTimeBuilder_; + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createAccountTime field is set. + */ + public boolean hasCreateAccountTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createAccountTime. + */ + public com.google.protobuf.Timestamp getCreateAccountTime() { + if (createAccountTimeBuilder_ == null) { + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; + } else { + return createAccountTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateAccountTime(com.google.protobuf.Timestamp value) { + if (createAccountTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createAccountTime_ = value; + } else { + createAccountTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateAccountTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createAccountTimeBuilder_ == null) { + createAccountTime_ = builderForValue.build(); + } else { + createAccountTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCreateAccountTime(com.google.protobuf.Timestamp value) { + if (createAccountTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createAccountTime_ != null + && createAccountTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateAccountTimeBuilder().mergeFrom(value); + } else { + createAccountTime_ = value; + } + } else { + createAccountTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCreateAccountTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createAccountTime_ = null; + if (createAccountTimeBuilder_ != null) { + createAccountTimeBuilder_.dispose(); + createAccountTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateAccountTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateAccountTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() { + if (createAccountTimeBuilder_ != null) { + return createAccountTimeBuilder_.getMessageOrBuilder(); + } else { + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; + } + } + /** + * + * + *
+     * Optional. Creation time for this account associated with this user. Leave
+     * blank for non logged-in actions, guest checkout, or when there is no
+     * account associated with the current user.
+     * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateAccountTimeFieldBuilder() { + if (createAccountTimeBuilder_ == null) { + createAccountTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateAccountTime(), getParentForChildren(), isClean()); + createAccountTime_ = null; + } + return createAccountTimeBuilder_; + } + + private java.lang.Object accountId_ = ""; + /** + * + * + *
+     * Optional. For logged-in requests or login/registration requests, the unique
+     * account identifier associated with this user. You can use the username if
+     * it is stable (meaning it is the same for every request associated with the
+     * same user), or any stable user ID of your choice. Leave blank for non
+     * logged-in actions or guest checkout.
+     * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. For logged-in requests or login/registration requests, the unique
+     * account identifier associated with this user. You can use the username if
+     * it is stable (meaning it is the same for every request associated with the
+     * same user), or any stable user ID of your choice. Leave blank for non
+     * logged-in actions or guest checkout.
+     * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. For logged-in requests or login/registration requests, the unique
+     * account identifier associated with this user. You can use the username if
+     * it is stable (meaning it is the same for every request associated with the
+     * same user), or any stable user ID of your choice. Leave blank for non
+     * logged-in actions or guest checkout.
+     * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. For logged-in requests or login/registration requests, the unique
+     * account identifier associated with this user. You can use the username if
+     * it is stable (meaning it is the same for every request associated with the
+     * same user), or any stable user ID of your choice. Leave blank for non
+     * logged-in actions or guest checkout.
+     * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAccountId() { + accountId_ = getDefaultInstance().getAccountId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. For logged-in requests or login/registration requests, the unique
+     * account identifier associated with this user. You can use the username if
+     * it is stable (meaning it is the same for every request associated with the
+     * same user), or any stable user ID of your choice. Leave blank for non
+     * logged-in actions or guest checkout.
+     * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List userIds_ = + java.util.Collections.emptyList(); + + private void ensureUserIdsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + userIds_ = new java.util.ArrayList(userIds_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder> + userIdsBuilder_; + + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getUserIdsList() { + if (userIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(userIds_); + } else { + return userIdsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getUserIdsCount() { + if (userIdsBuilder_ == null) { + return userIds_.size(); + } else { + return userIdsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserId getUserIds(int index) { + if (userIdsBuilder_ == null) { + return userIds_.get(index); + } else { + return userIdsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserIds(int index, com.google.recaptchaenterprise.v1.UserId value) { + if (userIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIdsIsMutable(); + userIds_.set(index, value); + onChanged(); + } else { + userIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserIds( + int index, com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.set(index, builderForValue.build()); + onChanged(); + } else { + userIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUserIds(com.google.recaptchaenterprise.v1.UserId value) { + if (userIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIdsIsMutable(); + userIds_.add(value); + onChanged(); + } else { + userIdsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUserIds(int index, com.google.recaptchaenterprise.v1.UserId value) { + if (userIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIdsIsMutable(); + userIds_.add(index, value); + onChanged(); + } else { + userIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUserIds(com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.add(builderForValue.build()); + onChanged(); + } else { + userIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUserIds( + int index, com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.add(index, builderForValue.build()); + onChanged(); + } else { + userIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllUserIds( + java.lang.Iterable values) { + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userIds_); + onChanged(); + } else { + userIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserIds() { + if (userIdsBuilder_ == null) { + userIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + userIdsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUserIds(int index) { + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.remove(index); + onChanged(); + } else { + userIdsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserId.Builder getUserIdsBuilder(int index) { + return getUserIdsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index) { + if (userIdsBuilder_ == null) { + return userIds_.get(index); + } else { + return userIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUserIdsOrBuilderList() { + if (userIdsBuilder_ != null) { + return userIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userIds_); + } + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserId.Builder addUserIdsBuilder() { + return getUserIdsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.recaptchaenterprise.v1.UserId.Builder addUserIdsBuilder(int index) { + return getUserIdsFieldBuilder() + .addBuilder(index, com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Identifiers associated with this user or request.
+     * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUserIdsBuilderList() { + return getUserIdsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder> + getUserIdsFieldBuilder() { + if (userIdsBuilder_ == null) { + userIdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder>( + userIds_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + userIds_ = null; + } + return userIdsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UserInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UserInfo) + private static final com.google.recaptchaenterprise.v1.UserInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UserInfo(); + } + + public static com.google.recaptchaenterprise.v1.UserInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.UserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java new file mode 100644 index 000000000000..ae4fcb9d0972 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface UserInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UserInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createAccountTime field is set. + */ + boolean hasCreateAccountTime(); + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createAccountTime. + */ + com.google.protobuf.Timestamp getCreateAccountTime(); + /** + * + * + *
+   * Optional. Creation time for this account associated with this user. Leave
+   * blank for non logged-in actions, guest checkout, or when there is no
+   * account associated with the current user.
+   * 
+ * + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder(); + + /** + * + * + *
+   * Optional. For logged-in requests or login/registration requests, the unique
+   * account identifier associated with this user. You can use the username if
+   * it is stable (meaning it is the same for every request associated with the
+   * same user), or any stable user ID of your choice. Leave blank for non
+   * logged-in actions or guest checkout.
+   * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountId. + */ + java.lang.String getAccountId(); + /** + * + * + *
+   * Optional. For logged-in requests or login/registration requests, the unique
+   * account identifier associated with this user. You can use the username if
+   * it is stable (meaning it is the same for every request associated with the
+   * same user), or any stable user ID of your choice. Leave blank for non
+   * logged-in actions or guest checkout.
+   * 
+ * + * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountId. + */ + com.google.protobuf.ByteString getAccountIdBytes(); + + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getUserIdsList(); + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.recaptchaenterprise.v1.UserId getUserIds(int index); + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUserIdsCount(); + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getUserIdsOrBuilderList(); + /** + * + * + *
+   * Optional. Identifiers associated with this user or request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index 314f839c5887..cf054bd5f762 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -451,15 +451,18 @@ message AnnotateAssessmentRequest { // whether the event is legitimate or fraudulent. Annotation annotation = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional reasons for the annotation that will be assigned to the - // Event. + // Optional. Reasons for the annotation that are assigned to the event. repeated Reason reasons = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Unique stable hashed user identifier to apply to the assessment. - // This is an alternative to setting the hashed_account_id in - // CreateAssessment, for example when the account identifier is not yet known - // in the initial request. It is recommended that the identifier is hashed - // using hmac-sha256 with stable secret. + // Optional. A stable account identifier to apply to the assessment. This is + // an alternative to setting `account_id` in `CreateAssessment`, for example + // when a stable account identifier is not yet known in the initial request. + string account_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A stable hashed account identifier to apply to the assessment. + // This is an alternative to setting `hashed_account_id` in + // `CreateAssessment`, for example when a stable account identifier is not yet + // known in the initial request. bytes hashed_account_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If the assessment is part of a payment transaction, provide @@ -606,8 +609,8 @@ message Assessment { AccountVerificationInfo account_verification = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Assessment returned by account defender when a - // hashed_account_id is provided. + // Output only. Assessment returned by account defender when an account + // identifier is provided. AccountDefenderAssessment account_defender_assessment = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -655,9 +658,11 @@ message Event { // already integrated with recaptcha enterprise. string expected_action = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Unique stable hashed user identifier for the request. The - // identifier must be hashed using hmac-sha256 with stable secret. - bytes hashed_account_id = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated: use `user_info.account_id` instead. + // Unique stable hashed user identifier for the request. The identifier must + // be hashed using hmac-sha256 with stable secret. + bytes hashed_account_id = 6 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Flag for a reCAPTCHA express request for an assessment without a // token. If enabled, `site_key` must reference a SCORE key with WAF feature @@ -688,6 +693,12 @@ message Event { // FraudPreventionAssessment component in the response. TransactionData transaction_data = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information about the user that generates this event, when they + // can be identified. They are often identified through the use of an account + // for logged-in requests or login/registration requests, or by providing user + // identifiers for guest actions like checkout. + UserInfo user_info = 15 [(google.api.field_behavior) = OPTIONAL]; } // Transaction data associated with a payment protected by reCAPTCHA Enterprise. @@ -832,6 +843,41 @@ message TransactionData { GatewayInfo gateway_info = 10 [(google.api.field_behavior) = OPTIONAL]; } +// User information associated with a request protected by reCAPTCHA Enterprise. +message UserInfo { + // Optional. Creation time for this account associated with this user. Leave + // blank for non logged-in actions, guest checkout, or when there is no + // account associated with the current user. + google.protobuf.Timestamp create_account_time = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. For logged-in requests or login/registration requests, the unique + // account identifier associated with this user. You can use the username if + // it is stable (meaning it is the same for every request associated with the + // same user), or any stable user ID of your choice. Leave blank for non + // logged-in actions or guest checkout. + string account_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Identifiers associated with this user or request. + repeated UserId user_ids = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// An identifier associated with a user. +message UserId { + oneof id_oneof { + // Optional. An email address. + string email = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A phone number. Should use the E.164 format. + string phone_number = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique username, if different from all the other identifiers + // and `account_id` that are provided. Can be a unique login handle or + // display name for a user. + string username = 3 [(google.api.field_behavior) = OPTIONAL]; + } +} + // Risk analysis result for an event. message RiskAnalysis { // Reasons contributing to the risk analysis verdict. diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java index fa508503c2a0..f65893a891f2 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java @@ -867,8 +867,7 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason c * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -888,8 +887,7 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason c * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -906,8 +904,7 @@ public int getReasonsCount() { * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -926,8 +923,7 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason g * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -944,8 +940,7 @@ public java.util.List getReasonsValueList() { * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -968,11 +963,11 @@ public int getReasonsValue(int index) { * * *
-   * Optional. Optional unique stable hashed user identifier to apply to the
-   * assessment. This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
+   * Optional. Unique stable hashed user identifier to apply to the assessment.
+   * This is an alternative to setting the `hashed_account_id` in
+   * `CreateAssessment`, for example, when the account identifier is not yet
+   * known in the initial request. It is recommended that the identifier is
+   * hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1788,8 +1783,7 @@ private void ensureReasonsIsMutable() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1809,8 +1803,7 @@ private void ensureReasonsIsMutable() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1826,8 +1819,7 @@ public int getReasonsCount() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1845,8 +1837,7 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason g * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1871,8 +1862,7 @@ public Builder setReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1896,8 +1886,7 @@ public Builder addReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1922,8 +1911,7 @@ public Builder addAllReasons( * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1942,8 +1930,7 @@ public Builder clearReasons() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1959,8 +1946,7 @@ public java.util.List getReasonsValueList() { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1977,8 +1963,7 @@ public int getReasonsValue(int index) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -1999,8 +1984,7 @@ public Builder setReasonsValue(int index, int value) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -2020,8 +2004,7 @@ public Builder addReasonsValue(int value) { * * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* * @@ -2045,11 +2028,11 @@ public Builder addAllReasonsValue(java.lang.Iterable values) * * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2064,11 +2047,11 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2089,11 +2072,11 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java index 5f82c0db6168..6832b6d5ff86 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java @@ -91,8 +91,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -107,8 +106,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -122,8 +120,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -138,8 +135,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -153,8 +149,7 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* * @@ -170,11 +165,11 @@ public interface AnnotateAssessmentRequestOrBuilder * * *
-   * Optional. Optional unique stable hashed user identifier to apply to the
-   * assessment. This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
+   * Optional. Unique stable hashed user identifier to apply to the assessment.
+   * This is an alternative to setting the `hashed_account_id` in
+   * `CreateAssessment`, for example, when the account identifier is not yet
+   * known in the initial request. It is recommended that the identifier is
+   * hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java index 11865c1020c2..1da42d292849 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java @@ -23,7 +23,6 @@ * *
  * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
- * All fields are optional.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} @@ -6702,7 +6701,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
-   * All fields are optional.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto index 40f2ef8fa2e2..3172a6047fa4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto @@ -295,15 +295,14 @@ message AnnotateAssessmentRequest { // whether the event is legitimate or fraudulent. Annotation annotation = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional reasons for the annotation that will be assigned to the - // Event. + // Optional. Reasons for the annotation that are assigned to the event. repeated Reason reasons = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional unique stable hashed user identifier to apply to the - // assessment. This is an alternative to setting the hashed_account_id in - // CreateAssessment, for example when the account identifier is not yet known - // in the initial request. It is recommended that the identifier is hashed - // using hmac-sha256 with stable secret. + // Optional. Unique stable hashed user identifier to apply to the assessment. + // This is an alternative to setting the `hashed_account_id` in + // `CreateAssessment`, for example, when the account identifier is not yet + // known in the initial request. It is recommended that the identifier is + // hashed using hmac-sha256 with stable secret. bytes hashed_account_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If the assessment is part of a payment transaction, provide @@ -435,7 +434,6 @@ message Event { } // Transaction data associated with a payment protected by reCAPTCHA Enterprise. -// All fields are optional. message TransactionData { // Structured address format for billing and shipping addresses. message Address { diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java index 72854036bce5..46b64eab8fdb 100644 --- a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java +++ b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java @@ -44,6 +44,7 @@ public static void asyncAnnotateAssessment() throws Exception { AnnotateAssessmentRequest.newBuilder() .setName(AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString()) .addAllReasons(new ArrayList()) + .setAccountId("accountId-1827029976") .setHashedAccountId(ByteString.EMPTY) .setTransactionEvent(TransactionEvent.newBuilder().build()) .build(); diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java index 2ee5703bcd65..165c76451c6c 100644 --- a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java +++ b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java @@ -43,6 +43,7 @@ public static void syncAnnotateAssessment() throws Exception { AnnotateAssessmentRequest.newBuilder() .setName(AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString()) .addAllReasons(new ArrayList()) + .setAccountId("accountId-1827029976") .setHashedAccountId(ByteString.EMPTY) .setTransactionEvent(TransactionEvent.newBuilder().build()) .build();