Class Assessment (3.10.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.10.0keyboard_arrow_down
public final class Assessment extends GeneratedMessageV3 implements AssessmentOrBuilder
A recaptcha assessment resource.
Protobuf type google.cloud.recaptchaenterprise.v1.Assessment
Static Fields
ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
Field Value
Type
Description
int
ACCOUNT_VERIFICATION_FIELD_NUMBER
public static final int ACCOUNT_VERIFICATION_FIELD_NUMBER
Field Value
Type
Description
int
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
PRIVATE_PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
public static final int PRIVATE_PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
Field Value
Type
Description
int
RISK_ANALYSIS_FIELD_NUMBER
public static final int RISK_ANALYSIS_FIELD_NUMBER
Field Value
Type
Description
int
TOKEN_PROPERTIES_FIELD_NUMBER
public static final int TOKEN_PROPERTIES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Assessment getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Assessment . Builder newBuilder ()
newBuilder(Assessment prototype)
public static Assessment . Builder newBuilder ( Assessment prototype )
public static Assessment parseDelimitedFrom ( InputStream input )
public static Assessment parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Assessment parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Assessment parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Assessment parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Assessment parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Assessment parseFrom ( CodedInputStream input )
public static Assessment parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Assessment parseFrom ( InputStream input )
public static Assessment parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Assessment parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Assessment parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Assessment> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAccountDefenderAssessment()
public AccountDefenderAssessment getAccountDefenderAssessment ()
Assessment returned by account defender when a hashed_account_id is
provided.
.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6;
getAccountDefenderAssessmentOrBuilder()
public AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder ()
Assessment returned by account defender when a hashed_account_id is
provided.
.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6;
getAccountVerification()
public AccountVerificationInfo getAccountVerification ()
Account verification information for identity verification. The assessment
event must include a token and site key to use this feature.
.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5;
getAccountVerificationOrBuilder()
public AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder ()
Account verification information for identity verification. The assessment
event must include a token and site key to use this feature.
.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5;
getDefaultInstanceForType()
public Assessment getDefaultInstanceForType ()
getEvent()
The event being assessed.
.google.cloud.recaptchaenterprise.v1.Event event = 2;
Returns
Type
Description
Event
The event.
getEventOrBuilder()
public EventOrBuilder getEventOrBuilder ()
The event being assessed.
.google.cloud.recaptchaenterprise.v1.Event event = 2;
getName()
Output only. The resource name for the Assessment in the format
"projects/{project}/assessments/{assessment}".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Output only. The resource name for the Assessment in the format
"projects/{project}/assessments/{assessment}".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<Assessment> getParserForType ()
Overrides
getPrivatePasswordLeakVerification()
public PrivatePasswordLeakVerification getPrivatePasswordLeakVerification ()
The private password leak verification field contains the parameters that
are used to to check for leaks privately without sharing user credentials.
.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;
getPrivatePasswordLeakVerificationOrBuilder()
public PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder ()
The private password leak verification field contains the parameters that
are used to to check for leaks privately without sharing user credentials.
.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;
getRiskAnalysis()
public RiskAnalysis getRiskAnalysis ()
Output only. The risk analysis result for the event being assessed.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRiskAnalysisOrBuilder()
public RiskAnalysisOrBuilder getRiskAnalysisOrBuilder ()
Output only. The risk analysis result for the event being assessed.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getTokenProperties()
public TokenProperties getTokenProperties ()
Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTokenPropertiesOrBuilder()
public TokenPropertiesOrBuilder getTokenPropertiesOrBuilder ()
Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Overrides
hasAccountDefenderAssessment()
public boolean hasAccountDefenderAssessment ()
Assessment returned by account defender when a hashed_account_id is
provided.
.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6;
Returns
Type
Description
boolean
Whether the accountDefenderAssessment field is set.
hasAccountVerification()
public boolean hasAccountVerification ()
Account verification information for identity verification. The assessment
event must include a token and site key to use this feature.
.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5;
Returns
Type
Description
boolean
Whether the accountVerification field is set.
hasEvent()
public boolean hasEvent ()
The event being assessed.
.google.cloud.recaptchaenterprise.v1.Event event = 2;
Returns
Type
Description
boolean
Whether the event field is set.
hasPrivatePasswordLeakVerification()
public boolean hasPrivatePasswordLeakVerification ()
The private password leak verification field contains the parameters that
are used to to check for leaks privately without sharing user credentials.
.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;
Returns
Type
Description
boolean
Whether the privatePasswordLeakVerification field is set.
hasRiskAnalysis()
public boolean hasRiskAnalysis ()
Output only. The risk analysis result for the event being assessed.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the riskAnalysis field is set.
hasTokenProperties()
public boolean hasTokenProperties ()
Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the tokenProperties field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Assessment . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Assessment . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Assessment . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[]]