Skip to content

Commit

Permalink
feat: added FraudPreventionAssessment.behavioral_trust_verdict
Browse files Browse the repository at this point in the history
docs: formatting of resource names
chore: remove backend configuration from the service config

PiperOrigin-RevId: 570683260
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 4, 2023
1 parent 4d27ae7 commit b027b01
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 24 deletions.
42 changes: 31 additions & 11 deletions google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
# https://github.com/googleapis/rules_gapic/tree/master/bazel

# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
Expand Down Expand Up @@ -28,8 +28,6 @@ proto_library(
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
Expand Down Expand Up @@ -78,6 +76,7 @@ java_gapic_library(
transport = "grpc+rest",
deps = [
":recaptchaenterprise_java_proto",
"//google/api:api_java_proto",
],
)

Expand Down Expand Up @@ -128,6 +127,7 @@ go_gapic_library(
srcs = [":recaptchaenterprise_proto_with_info"],
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
importpath = "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1;recaptchaenterprise",
metadata = True,
release_level = "beta",
rest_numeric_enums = True,
service_yaml = "recaptchaenterprise_v1beta1.yaml",
Expand All @@ -142,6 +142,7 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-recaptchaenterprise-v1beta1-go",
deps = [
":recaptchaenterprise_go_gapic",
":recaptchaenterprise_go_gapic_srcjar-metadata.srcjar",
":recaptchaenterprise_go_gapic_srcjar-snippets.srcjar",
":recaptchaenterprise_go_gapic_srcjar-test.srcjar",
":recaptchaenterprise_go_proto",
Expand All @@ -162,12 +163,12 @@ py_gapic_library(
name = "recaptchaenterprise_py_gapic",
srcs = [":recaptchaenterprise_proto"],
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
opt_args = [
"warehouse-package-name=google-cloud-recaptcha-enterprise",
],
opt_args = ["warehouse-package-name=google-cloud-recaptcha-enterprise"],
rest_numeric_enums = True,
service_yaml = "recaptchaenterprise_v1beta1.yaml",
transport = "grpc+rest",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -207,10 +208,13 @@ php_gapic_library(
name = "recaptchaenterprise_php_gapic",
srcs = [":recaptchaenterprise_proto_with_info"],
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
rest_numeric_enums = True,
service_yaml = "recaptchaenterprise_v1beta1.yaml",
transport = "grpc+rest",
deps = [":recaptchaenterprise_php_proto"],
deps = [
":recaptchaenterprise_php_proto",
],
)

# Open Source Packages
Expand Down Expand Up @@ -278,11 +282,11 @@ ruby_cloud_gapic_library(
name = "recaptchaenterprise_ruby_gapic",
srcs = [":recaptchaenterprise_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1beta1",
"ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE",
"ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise",
"ruby-cloud-api-id=recaptchaenterprise.googleapis.com",
"ruby-cloud-api-shortname=recaptchaenterprise",
"ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE",
"ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1beta1",
"ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise",
"ruby-cloud-service-override=RecaptchaEnterpriseServiceV1Beta1=RecaptchaEnterpriseService",
],
grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
Expand Down Expand Up @@ -356,4 +360,20 @@ csharp_gapic_assembly_pkg(
##############################################################################
# C++
##############################################################################
# Put your C++ rules here
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
)

cc_proto_library(
name = "recaptchaenterprise_cc_proto",
deps = [":recaptchaenterprise_proto"],
)

cc_grpc_library(
name = "recaptchaenterprise_cc_grpc",
srcs = [":recaptchaenterprise_proto"],
grpc_only = True,
deps = [":recaptchaenterprise_cc_proto"],
)
16 changes: 13 additions & 3 deletions google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ service RecaptchaEnterpriseServiceV1Beta1 {
// The create assessment request message.
message CreateAssessmentRequest {
// Required. The name of the project in which the assessment will be created,
// in the format "projects/{project_number}".
// in the format `projects/{project_number}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -282,7 +282,7 @@ message AnnotateAssessmentRequest {
}

// Required. The resource name of the Assessment, in the format
// "projects/{project_number}/assessments/{assessment_id}".
// `projects/{project_number}/assessments/{assessment_id}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -368,7 +368,7 @@ message Assessment {
}

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

// The event being assessed.
Expand Down Expand Up @@ -641,6 +641,13 @@ message FraudPreventionAssessment {
float risk = 1;
}

// Information about behavioral trust of the transaction.
message BehavioralTrustVerdict {
// Probability (0-1) of this transaction attempt being executed in a
// behaviorally trustworthy way.
float trust = 1;
}

// Probability (0-1) of this transaction being fraudulent. Summarizes the
// combined risk of attack vectors below.
float transaction_risk = 1;
Expand All @@ -651,6 +658,9 @@ message FraudPreventionAssessment {
// Assessment of this transaction for risk of being part of a card testing
// attack.
CardTestingVerdict card_testing_verdict = 3;

// Assessment of this transaction for behavioral trust.
BehavioralTrustVerdict behavioral_trust_verdict = 4;
}

// Account defender risk assessment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,3 @@ authentication:
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
publishing:
organization: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED
new_issue_uri: ''
documentation_uri: ''
api_short_name: ''
github_label: ''
doc_tag_prefix: ''
codeowner_github_teams:
library_settings:

0 comments on commit b027b01

Please sign in to comment.