Skip to content

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 15, 2022
1 parent 0f5ecd6 commit a859acb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
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 a859acb

Please sign in to comment.