Class Assessment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.recaptchaenterprise.v1beta1.Assessment
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AssessmentOrBuilder,Serializable
@Generated
public final class Assessment
extends com.google.protobuf.GeneratedMessage
implements AssessmentOrBuilder
A reCAPTCHA Enterprise assessment resource.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.Assessment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA reCAPTCHA Enterprise assessment resource.static enumReasons contributing to the risk analysis verdict.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAssessment returned by account defender when a hashed_account_id is provided.Assessment returned by account defender when a hashed_account_id is provided.static Assessmentstatic final com.google.protobuf.Descriptors.DescriptorgetEvent()The event being assessed.The event being assessed.Assessment returned by Fraud Prevention when TransactionData is provided.Assessment returned by Fraud Prevention when TransactionData is provided.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<Assessment>Information about the user's credentials used to check for leaks.Information about the user's credentials used to check for leaks.getReasons(int index) Output only.intOutput only.Output only.intgetReasonsValue(int index) Output only.Output only.floatgetScore()Output only.intOutput only.Output only.booleanAssessment returned by account defender when a hashed_account_id is provided.booleanhasEvent()The event being assessed.booleanAssessment returned by Fraud Prevention when TransactionData is provided.inthashCode()booleanInformation about the user's credentials used to check for leaks.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Assessment.Builderstatic Assessment.BuildernewBuilder(Assessment prototype) protected Assessment.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AssessmentparseDelimitedFrom(InputStream input) static AssessmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessmentparseFrom(byte[] data) static AssessmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessmentparseFrom(com.google.protobuf.ByteString data) static AssessmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessmentparseFrom(com.google.protobuf.CodedInputStream input) static AssessmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessmentparseFrom(InputStream input) static AssessmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessmentparseFrom(ByteBuffer data) static AssessmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Assessment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER- See Also:
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER- See Also:
-
TOKEN_PROPERTIES_FIELD_NUMBER
public static final int TOKEN_PROPERTIES_FIELD_NUMBER- See Also:
-
REASONS_FIELD_NUMBER
public static final int REASONS_FIELD_NUMBER- See Also:
-
PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
public static final int PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER- See Also:
-
ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER- See Also:
-
FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER
public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Output only. The resource name for the Assessment in the format `projects/{project_number}/assessments/{assessment_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceAssessmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name for the Assessment in the format `projects/{project_number}/assessments/{assessment_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceAssessmentOrBuilder- Returns:
- The bytes for name.
-
hasEvent
public boolean hasEvent()The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;- Specified by:
hasEventin interfaceAssessmentOrBuilder- Returns:
- Whether the event field is set.
-
getEvent
The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;- Specified by:
getEventin interfaceAssessmentOrBuilder- Returns:
- The event.
-
getEventOrBuilder
The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;- Specified by:
getEventOrBuilderin interfaceAssessmentOrBuilder
-
getScore
public float getScore()Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).
float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScorein interfaceAssessmentOrBuilder- Returns:
- The score.
-
hasTokenProperties
public boolean hasTokenProperties()Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTokenPropertiesin interfaceAssessmentOrBuilder- Returns:
- Whether the tokenProperties field is set.
-
getTokenProperties
Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTokenPropertiesin interfaceAssessmentOrBuilder- Returns:
- The tokenProperties.
-
getTokenPropertiesOrBuilder
Output only. Properties of the provided event token.
.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTokenPropertiesOrBuilderin interfaceAssessmentOrBuilder
-
getReasonsList
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsListin interfaceAssessmentOrBuilder- Returns:
- A list containing the reasons.
-
getReasonsCount
public int getReasonsCount()Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsCountin interfaceAssessmentOrBuilder- Returns:
- The count of reasons.
-
getReasons
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsin interfaceAssessmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reasons at the given index.
-
getReasonsValueList
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsValueListin interfaceAssessmentOrBuilder- Returns:
- A list containing the enum numeric values on the wire for reasons.
-
getReasonsValue
public int getReasonsValue(int index) Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsValuein interfaceAssessmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of reasons at the given index.
-
hasPasswordLeakVerification
public boolean hasPasswordLeakVerification()Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.
.google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7;- Specified by:
hasPasswordLeakVerificationin interfaceAssessmentOrBuilder- Returns:
- Whether the passwordLeakVerification field is set.
-
getPasswordLeakVerification
Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.
.google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7;- Specified by:
getPasswordLeakVerificationin interfaceAssessmentOrBuilder- Returns:
- The passwordLeakVerification.
-
getPasswordLeakVerificationOrBuilder
Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.
.google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7;- Specified by:
getPasswordLeakVerificationOrBuilderin interfaceAssessmentOrBuilder
-
hasAccountDefenderAssessment
public boolean hasAccountDefenderAssessment()Assessment returned by account defender when a hashed_account_id is provided.
.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;- Specified by:
hasAccountDefenderAssessmentin interfaceAssessmentOrBuilder- Returns:
- Whether the accountDefenderAssessment field is set.
-
getAccountDefenderAssessment
Assessment returned by account defender when a hashed_account_id is provided.
.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;- Specified by:
getAccountDefenderAssessmentin interfaceAssessmentOrBuilder- Returns:
- The accountDefenderAssessment.
-
getAccountDefenderAssessmentOrBuilder
Assessment returned by account defender when a hashed_account_id is provided.
.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;- Specified by:
getAccountDefenderAssessmentOrBuilderin interfaceAssessmentOrBuilder
-
hasFraudPreventionAssessment
public boolean hasFraudPreventionAssessment()Assessment returned by Fraud Prevention when TransactionData is provided.
.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;- Specified by:
hasFraudPreventionAssessmentin interfaceAssessmentOrBuilder- Returns:
- Whether the fraudPreventionAssessment field is set.
-
getFraudPreventionAssessment
Assessment returned by Fraud Prevention when TransactionData is provided.
.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;- Specified by:
getFraudPreventionAssessmentin interfaceAssessmentOrBuilder- Returns:
- The fraudPreventionAssessment.
-
getFraudPreventionAssessmentOrBuilder
Assessment returned by Fraud Prevention when TransactionData is provided.
.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;- Specified by:
getFraudPreventionAssessmentOrBuilderin interfaceAssessmentOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Assessment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Assessment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Assessment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Assessment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Assessment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-