Skip to content

Commit b027b01

Browse files
Google APIscopybara-github
authored andcommitted
feat: added FraudPreventionAssessment.behavioral_trust_verdict
docs: formatting of resource names chore: remove backend configuration from the service config PiperOrigin-RevId: 570683260
1 parent 4d27ae7 commit b027b01

3 files changed

Lines changed: 44 additions & 24 deletions

File tree

google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -28,8 +28,6 @@ proto_library(
2828
"//google/api:client_proto",
2929
"//google/api:field_behavior_proto",
3030
"//google/api:resource_proto",
31-
"@com_google_protobuf//:empty_proto",
32-
"@com_google_protobuf//:field_mask_proto",
3331
"@com_google_protobuf//:timestamp_proto",
3432
],
3533
)
@@ -78,6 +76,7 @@ java_gapic_library(
7876
transport = "grpc+rest",
7977
deps = [
8078
":recaptchaenterprise_java_proto",
79+
"//google/api:api_java_proto",
8180
],
8281
)
8382

@@ -128,6 +127,7 @@ go_gapic_library(
128127
srcs = [":recaptchaenterprise_proto_with_info"],
129128
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
130129
importpath = "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1;recaptchaenterprise",
130+
metadata = True,
131131
release_level = "beta",
132132
rest_numeric_enums = True,
133133
service_yaml = "recaptchaenterprise_v1beta1.yaml",
@@ -142,6 +142,7 @@ go_gapic_assembly_pkg(
142142
name = "gapi-cloud-recaptchaenterprise-v1beta1-go",
143143
deps = [
144144
":recaptchaenterprise_go_gapic",
145+
":recaptchaenterprise_go_gapic_srcjar-metadata.srcjar",
145146
":recaptchaenterprise_go_gapic_srcjar-snippets.srcjar",
146147
":recaptchaenterprise_go_gapic_srcjar-test.srcjar",
147148
":recaptchaenterprise_go_proto",
@@ -162,12 +163,12 @@ py_gapic_library(
162163
name = "recaptchaenterprise_py_gapic",
163164
srcs = [":recaptchaenterprise_proto"],
164165
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
165-
opt_args = [
166-
"warehouse-package-name=google-cloud-recaptcha-enterprise",
167-
],
166+
opt_args = ["warehouse-package-name=google-cloud-recaptcha-enterprise"],
168167
rest_numeric_enums = True,
169168
service_yaml = "recaptchaenterprise_v1beta1.yaml",
170169
transport = "grpc+rest",
170+
deps = [
171+
],
171172
)
172173

173174
py_test(
@@ -207,10 +208,13 @@ php_gapic_library(
207208
name = "recaptchaenterprise_php_gapic",
208209
srcs = [":recaptchaenterprise_proto_with_info"],
209210
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
211+
migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
210212
rest_numeric_enums = True,
211213
service_yaml = "recaptchaenterprise_v1beta1.yaml",
212214
transport = "grpc+rest",
213-
deps = [":recaptchaenterprise_php_proto"],
215+
deps = [
216+
":recaptchaenterprise_php_proto",
217+
],
214218
)
215219

216220
# Open Source Packages
@@ -278,11 +282,11 @@ ruby_cloud_gapic_library(
278282
name = "recaptchaenterprise_ruby_gapic",
279283
srcs = [":recaptchaenterprise_proto_with_info"],
280284
extra_protoc_parameters = [
281-
"ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1beta1",
282-
"ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE",
283-
"ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise",
284285
"ruby-cloud-api-id=recaptchaenterprise.googleapis.com",
285286
"ruby-cloud-api-shortname=recaptchaenterprise",
287+
"ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE",
288+
"ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1beta1",
289+
"ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise",
286290
"ruby-cloud-service-override=RecaptchaEnterpriseServiceV1Beta1=RecaptchaEnterpriseService",
287291
],
288292
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
@@ -356,4 +360,20 @@ csharp_gapic_assembly_pkg(
356360
##############################################################################
357361
# C++
358362
##############################################################################
359-
# Put your C++ rules here
363+
load(
364+
"@com_google_googleapis_imports//:imports.bzl",
365+
"cc_grpc_library",
366+
"cc_proto_library",
367+
)
368+
369+
cc_proto_library(
370+
name = "recaptchaenterprise_cc_proto",
371+
deps = [":recaptchaenterprise_proto"],
372+
)
373+
374+
cc_grpc_library(
375+
name = "recaptchaenterprise_cc_grpc",
376+
srcs = [":recaptchaenterprise_proto"],
377+
grpc_only = True,
378+
deps = [":recaptchaenterprise_cc_proto"],
379+
)

google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ service RecaptchaEnterpriseServiceV1Beta1 {
6161
// The create assessment request message.
6262
message CreateAssessmentRequest {
6363
// Required. The name of the project in which the assessment will be created,
64-
// in the format "projects/{project_number}".
64+
// in the format `projects/{project_number}`.
6565
string parent = 1 [
6666
(google.api.field_behavior) = REQUIRED,
6767
(google.api.resource_reference) = {
@@ -282,7 +282,7 @@ message AnnotateAssessmentRequest {
282282
}
283283

284284
// Required. The resource name of the Assessment, in the format
285-
// "projects/{project_number}/assessments/{assessment_id}".
285+
// `projects/{project_number}/assessments/{assessment_id}`.
286286
string name = 1 [
287287
(google.api.field_behavior) = REQUIRED,
288288
(google.api.resource_reference) = {
@@ -368,7 +368,7 @@ message Assessment {
368368
}
369369

370370
// Output only. The resource name for the Assessment in the format
371-
// "projects/{project_number}/assessments/{assessment_id}".
371+
// `projects/{project_number}/assessments/{assessment_id}`.
372372
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
373373

374374
// The event being assessed.
@@ -641,6 +641,13 @@ message FraudPreventionAssessment {
641641
float risk = 1;
642642
}
643643

644+
// Information about behavioral trust of the transaction.
645+
message BehavioralTrustVerdict {
646+
// Probability (0-1) of this transaction attempt being executed in a
647+
// behaviorally trustworthy way.
648+
float trust = 1;
649+
}
650+
644651
// Probability (0-1) of this transaction being fraudulent. Summarizes the
645652
// combined risk of attack vectors below.
646653
float transaction_risk = 1;
@@ -651,6 +658,9 @@ message FraudPreventionAssessment {
651658
// Assessment of this transaction for risk of being part of a card testing
652659
// attack.
653660
CardTestingVerdict card_testing_verdict = 3;
661+
662+
// Assessment of this transaction for behavioral trust.
663+
BehavioralTrustVerdict behavioral_trust_verdict = 4;
654664
}
655665

656666
// Account defender risk assessment.

google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_v1beta1.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,3 @@ authentication:
2222
oauth:
2323
canonical_scopes: |-
2424
https://www.googleapis.com/auth/cloud-platform
25-
26-
publishing:
27-
organization: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED
28-
new_issue_uri: ''
29-
documentation_uri: ''
30-
api_short_name: ''
31-
github_label: ''
32-
doc_tag_prefix: ''
33-
codeowner_github_teams:
34-
library_settings:

0 commit comments

Comments
 (0)