Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
docs(samples): removed assessment name (#623)
Browse files Browse the repository at this point in the history
* docs(samples): removed assessment name

* 馃 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
Sita04 and gcf-owl-bot[bot] committed Nov 8, 2021
1 parent 6e56de6 commit d84325e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -56,17 +56,14 @@ public static void createAssessment(
// clean up any remaining background resources.
try (RecaptchaEnterpriseServiceClient client = RecaptchaEnterpriseServiceClient.create()) {

// Specify a name for this assessment.
String assessmentName = "assessment-name";
// Set the properties of the event to be tracked.
Event event = Event.newBuilder().setSiteKey(recaptchaSiteKey).setToken(token).build();

// Build the assessment request.
CreateAssessmentRequest createAssessmentRequest =
CreateAssessmentRequest.newBuilder()
.setParent(ProjectName.of(projectID).toString())
.setAssessment(
Assessment.newBuilder().setEvent(event).setName(assessmentName).build())
.setAssessment(Assessment.newBuilder().setEvent(event).build())
.build();

Assessment response = client.createAssessment(createAssessmentRequest);
Expand Down

0 comments on commit d84325e

Please sign in to comment.