Skip to content

Commit

Permalink
feat: [google-cloud-recaptcha-enterprise] A new enum Challenge is a…
Browse files Browse the repository at this point in the history
…dded (#13275)

- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
feat: A new field `challenge` is added to message
`.google.cloud.recaptchaenterprise.v1.RiskAnalysis`
feat: A new enum `Challenge` is added
END_COMMIT_OVERRIDE



PiperOrigin-RevId: 695828238

Source-Link:
googleapis/googleapis@2aabebc

Source-Link:
googleapis/googleapis-gen@9ebf4d5
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiI5ZWJmNGQ1MDU2MzUzMTFkZmE1Njc4YjM1ZDAxZTdmZjM4NWVjZTM3In0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 13, 2024
1 parent 131af55 commit 511d7cc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.24.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.24.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,9 @@ class RiskAnalysis(proto.Message):
Output only. Extended verdict reasons to be
used for experimentation only. The set of
possible reasons is subject to change.
challenge (google.cloud.recaptchaenterprise_v1.types.RiskAnalysis.Challenge):
Output only. Challenge information for SCORE_AND_CHALLENGE
keys
"""

class ClassificationReason(proto.Enum):
Expand Down Expand Up @@ -1355,6 +1358,25 @@ class ClassificationReason(proto.Enum):
SUSPECTED_CARDING = 6
SUSPECTED_CHARGEBACK = 7

class Challenge(proto.Enum):
r"""Challenge information for SCORE_AND_CHALLENGE keys
Values:
CHALLENGE_UNSPECIFIED (0):
Default unspecified type.
NOCAPTCHA (1):
No challenge was presented for solving.
PASSED (2):
A solution was submitted that was correct.
FAILED (3):
A solution was submitted that was incorrect
or otherwise deemed suspicious.
"""
CHALLENGE_UNSPECIFIED = 0
NOCAPTCHA = 1
PASSED = 2
FAILED = 3

score: float = proto.Field(
proto.FLOAT,
number=1,
Expand All @@ -1368,6 +1390,11 @@ class ClassificationReason(proto.Enum):
proto.STRING,
number=3,
)
challenge: Challenge = proto.Field(
proto.ENUM,
number=4,
enum=Challenge,
)


class TokenProperties(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-recaptcha-enterprise",
"version": "1.24.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 511d7cc

Please sign in to comment.