Class Assessment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class Assessment extends com.google.protobuf.GeneratedMessageV3 implements AssessmentOrBuilder
A reCAPTCHA Enterprise assessment resource.
Protobuf typegoogle.cloud.recaptchaenterprise.v1beta1.Assessment
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Assessment.Builder
A reCAPTCHA Enterprise assessment resource.static class
Assessment.ClassificationReason
Reasons contributing to the risk analysis verdict.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
static int
EVENT_FIELD_NUMBER
static int
FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
static int
REASONS_FIELD_NUMBER
static int
SCORE_FIELD_NUMBER
static int
TOKEN_PROPERTIES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AccountDefenderAssessment
getAccountDefenderAssessment()
Assessment returned by account defender when a hashed_account_id is provided.AccountDefenderAssessmentOrBuilder
getAccountDefenderAssessmentOrBuilder()
Assessment returned by account defender when a hashed_account_id is provided.static Assessment
getDefaultInstance()
Assessment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Event
getEvent()
The event being assessed.EventOrBuilder
getEventOrBuilder()
The event being assessed.FraudPreventionAssessment
getFraudPreventionAssessment()
Assessment returned by Fraud Prevention when TransactionData is provided.FraudPreventionAssessmentOrBuilder
getFraudPreventionAssessmentOrBuilder()
Assessment returned by Fraud Prevention when TransactionData is provided.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Assessment>
getParserForType()
PasswordLeakVerification
getPasswordLeakVerification()
Information about the user's credentials used to check for leaks.PasswordLeakVerificationOrBuilder
getPasswordLeakVerificationOrBuilder()
Information about the user's credentials used to check for leaks.Assessment.ClassificationReason
getReasons(int index)
Output only.int
getReasonsCount()
Output only.List<Assessment.ClassificationReason>
getReasonsList()
Output only.int
getReasonsValue(int index)
Output only.List<Integer>
getReasonsValueList()
Output only.float
getScore()
Output only.int
getSerializedSize()
TokenProperties
getTokenProperties()
Output only.TokenPropertiesOrBuilder
getTokenPropertiesOrBuilder()
Output only.boolean
hasAccountDefenderAssessment()
Assessment returned by account defender when a hashed_account_id is provided.boolean
hasEvent()
The event being assessed.boolean
hasFraudPreventionAssessment()
Assessment returned by Fraud Prevention when TransactionData is provided.int
hashCode()
boolean
hasPasswordLeakVerification()
Information about the user's credentials used to check for leaks.boolean
hasTokenProperties()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Assessment.Builder
newBuilder()
static Assessment.Builder
newBuilder(Assessment prototype)
Assessment.Builder
newBuilderForType()
protected Assessment.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Assessment
parseDelimitedFrom(InputStream input)
static Assessment
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessment
parseFrom(byte[] data)
static Assessment
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessment
parseFrom(com.google.protobuf.ByteString data)
static Assessment
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessment
parseFrom(com.google.protobuf.CodedInputStream input)
static Assessment
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessment
parseFrom(InputStream input)
static Assessment
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessment
parseFrom(ByteBuffer data)
static Assessment
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Assessment>
parser()
Assessment.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOKEN_PROPERTIES_FIELD_NUMBER
public static final int TOKEN_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REASONS_FIELD_NUMBER
public static final int REASONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
public static final int PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER
public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String 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:
getName
in 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:
getNameBytes
in interfaceAssessmentOrBuilder
- Returns:
- The bytes for name.
-
hasEvent
public boolean hasEvent()
The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;
- Specified by:
hasEvent
in interfaceAssessmentOrBuilder
- Returns:
- Whether the event field is set.
-
getEvent
public Event getEvent()
The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;
- Specified by:
getEvent
in interfaceAssessmentOrBuilder
- Returns:
- The event.
-
getEventOrBuilder
public EventOrBuilder getEventOrBuilder()
The event being assessed.
.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;
- Specified by:
getEventOrBuilder
in 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:
getScore
in 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:
hasTokenProperties
in interfaceAssessmentOrBuilder
- Returns:
- Whether the tokenProperties field is set.
-
getTokenProperties
public TokenProperties 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:
getTokenProperties
in interfaceAssessmentOrBuilder
- Returns:
- The tokenProperties.
-
getTokenPropertiesOrBuilder
public TokenPropertiesOrBuilder 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:
getTokenPropertiesOrBuilder
in interfaceAssessmentOrBuilder
-
getReasonsList
public List<Assessment.ClassificationReason> 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:
getReasonsList
in 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:
getReasonsCount
in interfaceAssessmentOrBuilder
- Returns:
- The count of reasons.
-
getReasons
public Assessment.ClassificationReason getReasons(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:
getReasons
in interfaceAssessmentOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The reasons at the given index.
-
getReasonsValueList
public List<Integer> 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:
getReasonsValueList
in 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:
getReasonsValue
in 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:
hasPasswordLeakVerification
in interfaceAssessmentOrBuilder
- Returns:
- Whether the passwordLeakVerification field is set.
-
getPasswordLeakVerification
public PasswordLeakVerification 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:
getPasswordLeakVerification
in interfaceAssessmentOrBuilder
- Returns:
- The passwordLeakVerification.
-
getPasswordLeakVerificationOrBuilder
public PasswordLeakVerificationOrBuilder 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:
getPasswordLeakVerificationOrBuilder
in 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:
hasAccountDefenderAssessment
in interfaceAssessmentOrBuilder
- Returns:
- Whether the accountDefenderAssessment field is set.
-
getAccountDefenderAssessment
public AccountDefenderAssessment getAccountDefenderAssessment()
Assessment returned by account defender when a hashed_account_id is provided.
.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;
- Specified by:
getAccountDefenderAssessment
in interfaceAssessmentOrBuilder
- Returns:
- The accountDefenderAssessment.
-
getAccountDefenderAssessmentOrBuilder
public AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder()
Assessment returned by account defender when a hashed_account_id is provided.
.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;
- Specified by:
getAccountDefenderAssessmentOrBuilder
in 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:
hasFraudPreventionAssessment
in interfaceAssessmentOrBuilder
- Returns:
- Whether the fraudPreventionAssessment field is set.
-
getFraudPreventionAssessment
public FraudPreventionAssessment getFraudPreventionAssessment()
Assessment returned by Fraud Prevention when TransactionData is provided.
.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;
- Specified by:
getFraudPreventionAssessment
in interfaceAssessmentOrBuilder
- Returns:
- The fraudPreventionAssessment.
-
getFraudPreventionAssessmentOrBuilder
public FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder()
Assessment returned by Fraud Prevention when TransactionData is provided.
.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;
- Specified by:
getFraudPreventionAssessmentOrBuilder
in interfaceAssessmentOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static Assessment parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Assessment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Assessment parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Assessment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Assessment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Assessment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Assessment.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Assessment.Builder newBuilder()
-
newBuilder
public static Assessment.Builder newBuilder(Assessment prototype)
-
toBuilder
public Assessment.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Assessment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Assessment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Assessment> parser()
-
getParserForType
public com.google.protobuf.Parser<Assessment> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Assessment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-