File tree 1 file changed +1
-4
lines changed
recaptcha_enterprise/cloud-client/src/main/java/recaptcha
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,14 @@ public static void createAssessment(
56
56
// clean up any remaining background resources.
57
57
try (RecaptchaEnterpriseServiceClient client = RecaptchaEnterpriseServiceClient .create ()) {
58
58
59
- // Specify a name for this assessment.
60
- String assessmentName = "assessment-name" ;
61
59
// Set the properties of the event to be tracked.
62
60
Event event = Event .newBuilder ().setSiteKey (recaptchaSiteKey ).setToken (token ).build ();
63
61
64
62
// Build the assessment request.
65
63
CreateAssessmentRequest createAssessmentRequest =
66
64
CreateAssessmentRequest .newBuilder ()
67
65
.setParent (ProjectName .of (projectID ).toString ())
68
- .setAssessment (
69
- Assessment .newBuilder ().setEvent (event ).setName (assessmentName ).build ())
66
+ .setAssessment (Assessment .newBuilder ().setEvent (event ).build ())
70
67
.build ();
71
68
72
69
Assessment response = client .createAssessment (createAssessmentRequest );
You can’t perform that action at this time.
0 commit comments