Class Assessment.Builder (3.49.0)

public static final class Assessment.Builder extends GeneratedMessageV3.Builder<Assessment.Builder> implements AssessmentOrBuilder

A reCAPTCHA Enterprise assessment resource.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.Assessment

Implements

AssessmentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReasons(Iterable<? extends Assessment.ClassificationReason> values)

public Assessment.Builder addAllReasons(Iterable<? extends Assessment.ClassificationReason> values)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>

The reasons to add.

Returns
Type Description
Assessment.Builder

This builder for chaining.

addAllReasonsValue(Iterable<Integer> values)

public Assessment.Builder addAllReasonsValue(Iterable<Integer> values)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for reasons to add.

Returns
Type Description
Assessment.Builder

This builder for chaining.

addReasons(Assessment.ClassificationReason value)

public Assessment.Builder addReasons(Assessment.ClassificationReason value)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Assessment.ClassificationReason

The reasons to add.

Returns
Type Description
Assessment.Builder

This builder for chaining.

addReasonsValue(int value)

public Assessment.Builder addReasonsValue(int value)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for reasons to add.

Returns
Type Description
Assessment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Assessment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Assessment.Builder
Overrides

build()

public Assessment build()
Returns
Type Description
Assessment

buildPartial()

public Assessment buildPartial()
Returns
Type Description
Assessment

clear()

public Assessment.Builder clear()
Returns
Type Description
Assessment.Builder
Overrides

clearAccountDefenderAssessment()

public Assessment.Builder clearAccountDefenderAssessment()

Assessment returned by account defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;

Returns
Type Description
Assessment.Builder

clearEvent()

public Assessment.Builder clearEvent()

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Returns
Type Description
Assessment.Builder

clearField(Descriptors.FieldDescriptor field)

public Assessment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Assessment.Builder
Overrides

clearFraudPreventionAssessment()

public Assessment.Builder clearFraudPreventionAssessment()

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Returns
Type Description
Assessment.Builder

clearName()

public Assessment.Builder clearName()

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];

Returns
Type Description
Assessment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Assessment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Assessment.Builder
Overrides

clearPasswordLeakVerification()

public Assessment.Builder clearPasswordLeakVerification()

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;

Returns
Type Description
Assessment.Builder

clearReasons()

public Assessment.Builder clearReasons()

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Assessment.Builder

This builder for chaining.

clearScore()

public Assessment.Builder clearScore()

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];

Returns
Type Description
Assessment.Builder

This builder for chaining.

clearTokenProperties()

public Assessment.Builder clearTokenProperties()

Output only. Properties of the provided event token.

.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Assessment.Builder

clone()

public Assessment.Builder clone()
Returns
Type Description
Assessment.Builder
Overrides

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;

Returns
Type Description
AccountDefenderAssessment

The accountDefenderAssessment.

getAccountDefenderAssessmentBuilder()

public AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder()

Assessment returned by account defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;

Returns
Type Description
AccountDefenderAssessment.Builder

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;

Returns
Type Description
AccountDefenderAssessmentOrBuilder

getDefaultInstanceForType()

public Assessment getDefaultInstanceForType()
Returns
Type Description
Assessment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEvent()

public Event getEvent()

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Returns
Type Description
Event

The event.

getEventBuilder()

public Event.Builder getEventBuilder()

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Returns
Type Description
Event.Builder

getEventOrBuilder()

public EventOrBuilder getEventOrBuilder()

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Returns
Type Description
EventOrBuilder

getFraudPreventionAssessment()

public FraudPreventionAssessment getFraudPreventionAssessment()

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Returns
Type Description
FraudPreventionAssessment

The fraudPreventionAssessment.

getFraudPreventionAssessmentBuilder()

public FraudPreventionAssessment.Builder getFraudPreventionAssessmentBuilder()

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Returns
Type Description
FraudPreventionAssessment.Builder

getFraudPreventionAssessmentOrBuilder()

public FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder()

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Returns
Type Description
FraudPreventionAssessmentOrBuilder

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

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;

Returns
Type Description
PasswordLeakVerification

The passwordLeakVerification.

getPasswordLeakVerificationBuilder()

public PasswordLeakVerification.Builder getPasswordLeakVerificationBuilder()

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;

Returns
Type Description
PasswordLeakVerification.Builder

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;

Returns
Type Description
PasswordLeakVerificationOrBuilder

getReasons(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Assessment.ClassificationReason

The reasons at the given index.

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];

Returns
Type Description
int

The count of reasons.

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];

Returns
Type Description
List<ClassificationReason>

A list containing the reasons.

getReasonsValue(int index)

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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of 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];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for reasons.

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];

Returns
Type Description
float

The score.

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];

Returns
Type Description
TokenProperties

The tokenProperties.

getTokenPropertiesBuilder()

public TokenProperties.Builder getTokenPropertiesBuilder()

Output only. Properties of the provided event token.

.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TokenProperties.Builder

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];

Returns
Type Description
TokenPropertiesOrBuilder

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;

Returns
Type Description
boolean

Whether the accountDefenderAssessment field is set.

hasEvent()

public boolean hasEvent()

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Returns
Type Description
boolean

Whether the event field is set.

hasFraudPreventionAssessment()

public boolean hasFraudPreventionAssessment()

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Returns
Type Description
boolean

Whether the fraudPreventionAssessment field is set.

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;

Returns
Type Description
boolean

Whether the passwordLeakVerification field is set.

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];

Returns
Type Description
boolean

Whether the tokenProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccountDefenderAssessment(AccountDefenderAssessment value)

public Assessment.Builder mergeAccountDefenderAssessment(AccountDefenderAssessment value)

Assessment returned by account defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;

Parameter
Name Description
value AccountDefenderAssessment
Returns
Type Description
Assessment.Builder

mergeEvent(Event value)

public Assessment.Builder mergeEvent(Event value)

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Parameter
Name Description
value Event
Returns
Type Description
Assessment.Builder

mergeFraudPreventionAssessment(FraudPreventionAssessment value)

public Assessment.Builder mergeFraudPreventionAssessment(FraudPreventionAssessment value)

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Parameter
Name Description
value FraudPreventionAssessment
Returns
Type Description
Assessment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Assessment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Assessment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Assessment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Assessment.Builder
Overrides

mergeFrom(Assessment other)

public Assessment.Builder mergeFrom(Assessment other)
Parameter
Name Description
other Assessment
Returns
Type Description
Assessment.Builder

mergePasswordLeakVerification(PasswordLeakVerification value)

public Assessment.Builder mergePasswordLeakVerification(PasswordLeakVerification value)

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;

Parameter
Name Description
value PasswordLeakVerification
Returns
Type Description
Assessment.Builder

mergeTokenProperties(TokenProperties value)

public Assessment.Builder mergeTokenProperties(TokenProperties value)

Output only. Properties of the provided event token.

.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TokenProperties
Returns
Type Description
Assessment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Assessment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Assessment.Builder
Overrides

setAccountDefenderAssessment(AccountDefenderAssessment value)

public Assessment.Builder setAccountDefenderAssessment(AccountDefenderAssessment value)

Assessment returned by account defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;

Parameter
Name Description
value AccountDefenderAssessment
Returns
Type Description
Assessment.Builder

setAccountDefenderAssessment(AccountDefenderAssessment.Builder builderForValue)

public Assessment.Builder setAccountDefenderAssessment(AccountDefenderAssessment.Builder builderForValue)

Assessment returned by account defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8;

Parameter
Name Description
builderForValue AccountDefenderAssessment.Builder
Returns
Type Description
Assessment.Builder

setEvent(Event value)

public Assessment.Builder setEvent(Event value)

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Parameter
Name Description
value Event
Returns
Type Description
Assessment.Builder

setEvent(Event.Builder builderForValue)

public Assessment.Builder setEvent(Event.Builder builderForValue)

The event being assessed.

.google.cloud.recaptchaenterprise.v1beta1.Event event = 2;

Parameter
Name Description
builderForValue Event.Builder
Returns
Type Description
Assessment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Assessment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Assessment.Builder
Overrides

setFraudPreventionAssessment(FraudPreventionAssessment value)

public Assessment.Builder setFraudPreventionAssessment(FraudPreventionAssessment value)

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Parameter
Name Description
value FraudPreventionAssessment
Returns
Type Description
Assessment.Builder

setFraudPreventionAssessment(FraudPreventionAssessment.Builder builderForValue)

public Assessment.Builder setFraudPreventionAssessment(FraudPreventionAssessment.Builder builderForValue)

Assessment returned by Fraud Prevention when TransactionData is provided.

.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11;

Parameter
Name Description
builderForValue FraudPreventionAssessment.Builder
Returns
Type Description
Assessment.Builder

setName(String value)

public Assessment.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Assessment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Assessment.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Assessment.Builder

This builder for chaining.

setPasswordLeakVerification(PasswordLeakVerification value)

public Assessment.Builder setPasswordLeakVerification(PasswordLeakVerification value)

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;

Parameter
Name Description
value PasswordLeakVerification
Returns
Type Description
Assessment.Builder

setPasswordLeakVerification(PasswordLeakVerification.Builder builderForValue)

public Assessment.Builder setPasswordLeakVerification(PasswordLeakVerification.Builder builderForValue)

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;

Parameter
Name Description
builderForValue PasswordLeakVerification.Builder
Returns
Type Description
Assessment.Builder

setReasons(int index, Assessment.ClassificationReason value)

public Assessment.Builder setReasons(int index, Assessment.ClassificationReason value)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value Assessment.ClassificationReason

The reasons to set.

Returns
Type Description
Assessment.Builder

This builder for chaining.

setReasonsValue(int index, int value)

public Assessment.Builder setReasonsValue(int index, int value)

Output only. Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for reasons to set.

Returns
Type Description
Assessment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Assessment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Assessment.Builder
Overrides

setScore(float value)

public Assessment.Builder setScore(float value)

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];

Parameter
Name Description
value float

The score to set.

Returns
Type Description
Assessment.Builder

This builder for chaining.

setTokenProperties(TokenProperties value)

public Assessment.Builder setTokenProperties(TokenProperties value)

Output only. Properties of the provided event token.

.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TokenProperties
Returns
Type Description
Assessment.Builder

setTokenProperties(TokenProperties.Builder builderForValue)

public Assessment.Builder setTokenProperties(TokenProperties.Builder builderForValue)

Output only. Properties of the provided event token.

.google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TokenProperties.Builder
Returns
Type Description
Assessment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Assessment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Assessment.Builder
Overrides