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] authored Nov 8, 2021
1 parent 51916bb commit 916bce8
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 916bce8

Please sign in to comment.