Class Assessment.Builder (3.0.12)

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

A recaptcha assessment resource.

Protobuf type google.cloud.recaptchaenterprise.v1.Assessment

Implements

AssessmentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Assessment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Assessment.Builder
Overrides

build()

public Assessment build()
Returns
TypeDescription
Assessment

buildPartial()

public Assessment buildPartial()
Returns
TypeDescription
Assessment

clear()

public Assessment.Builder clear()
Returns
TypeDescription
Assessment.Builder
Overrides

clearAccountDefenderAssessment()

public Assessment.Builder clearAccountDefenderAssessment()

Assessment returned by Account Defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6;

Returns
TypeDescription
Assessment.Builder

clearEvent()

public Assessment.Builder clearEvent()

The event being assessed.

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

Returns
TypeDescription
Assessment.Builder

clearField(Descriptors.FieldDescriptor field)

public Assessment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Assessment.Builder
Overrides

clearName()

public Assessment.Builder clearName()

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
TypeDescription
Assessment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Assessment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Assessment.Builder
Overrides

clearPrivatePasswordLeakVerification()

public Assessment.Builder clearPrivatePasswordLeakVerification()

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Returns
TypeDescription
Assessment.Builder

clearRiskAnalysis()

public Assessment.Builder clearRiskAnalysis()

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
TypeDescription
Assessment.Builder

clearTokenProperties()

public Assessment.Builder clearTokenProperties()

Output only. Properties of the provided event token.

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

Returns
TypeDescription
Assessment.Builder

clone()

public Assessment.Builder clone()
Returns
TypeDescription
Assessment.Builder
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;

Returns
TypeDescription
AccountDefenderAssessment

The accountDefenderAssessment.

getAccountDefenderAssessmentBuilder()

public AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder()

Assessment returned by Account Defender when a hashed_account_id is provided.

.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6;

Returns
TypeDescription
AccountDefenderAssessment.Builder

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;

Returns
TypeDescription
AccountDefenderAssessmentOrBuilder

getDefaultInstanceForType()

public Assessment getDefaultInstanceForType()
Returns
TypeDescription
Assessment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEvent()

public Event getEvent()

The event being assessed.

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

Returns
TypeDescription
Event

The event.

getEventBuilder()

public Event.Builder getEventBuilder()

The event being assessed.

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

Returns
TypeDescription
Event.Builder

getEventOrBuilder()

public EventOrBuilder getEventOrBuilder()

The event being assessed.

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

Returns
TypeDescription
EventOrBuilder

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getPrivatePasswordLeakVerification()

public PrivatePasswordLeakVerification getPrivatePasswordLeakVerification()

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Returns
TypeDescription
PrivatePasswordLeakVerification

The privatePasswordLeakVerification.

getPrivatePasswordLeakVerificationBuilder()

public PrivatePasswordLeakVerification.Builder getPrivatePasswordLeakVerificationBuilder()

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Returns
TypeDescription
PrivatePasswordLeakVerification.Builder

getPrivatePasswordLeakVerificationOrBuilder()

public PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder()

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Returns
TypeDescription
PrivatePasswordLeakVerificationOrBuilder

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

Returns
TypeDescription
RiskAnalysis

The riskAnalysis.

getRiskAnalysisBuilder()

public RiskAnalysis.Builder getRiskAnalysisBuilder()

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
TypeDescription
RiskAnalysis.Builder

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

Returns
TypeDescription
RiskAnalysisOrBuilder

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

Returns
TypeDescription
TokenProperties

The tokenProperties.

getTokenPropertiesBuilder()

public TokenProperties.Builder getTokenPropertiesBuilder()

Output only. Properties of the provided event token.

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

Returns
TypeDescription
TokenProperties.Builder

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

Returns
TypeDescription
TokenPropertiesOrBuilder

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
TypeDescription
boolean

Whether the accountDefenderAssessment field is set.

hasEvent()

public boolean hasEvent()

The event being assessed.

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

Returns
TypeDescription
boolean

Whether the event field is set.

hasPrivatePasswordLeakVerification()

public boolean hasPrivatePasswordLeakVerification()

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the tokenProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1.AccountDefenderAssessment account_defender_assessment = 6;

Parameter
NameDescription
valueAccountDefenderAssessment
Returns
TypeDescription
Assessment.Builder

mergeEvent(Event value)

public Assessment.Builder mergeEvent(Event value)

The event being assessed.

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

Parameter
NameDescription
valueEvent
Returns
TypeDescription
Assessment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Assessment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Assessment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Assessment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Assessment.Builder
Overrides

mergeFrom(Assessment other)

public Assessment.Builder mergeFrom(Assessment other)
Parameter
NameDescription
otherAssessment
Returns
TypeDescription
Assessment.Builder

mergePrivatePasswordLeakVerification(PrivatePasswordLeakVerification value)

public Assessment.Builder mergePrivatePasswordLeakVerification(PrivatePasswordLeakVerification value)

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Parameter
NameDescription
valuePrivatePasswordLeakVerification
Returns
TypeDescription
Assessment.Builder

mergeRiskAnalysis(RiskAnalysis value)

public Assessment.Builder mergeRiskAnalysis(RiskAnalysis value)

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

Parameter
NameDescription
valueRiskAnalysis
Returns
TypeDescription
Assessment.Builder

mergeTokenProperties(TokenProperties value)

public Assessment.Builder mergeTokenProperties(TokenProperties value)

Output only. Properties of the provided event token.

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

Parameter
NameDescription
valueTokenProperties
Returns
TypeDescription
Assessment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Assessment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.AccountDefenderAssessment account_defender_assessment = 6;

Parameter
NameDescription
valueAccountDefenderAssessment
Returns
TypeDescription
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.v1.AccountDefenderAssessment account_defender_assessment = 6;

Parameter
NameDescription
builderForValueAccountDefenderAssessment.Builder
Returns
TypeDescription
Assessment.Builder

setEvent(Event value)

public Assessment.Builder setEvent(Event value)

The event being assessed.

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

Parameter
NameDescription
valueEvent
Returns
TypeDescription
Assessment.Builder

setEvent(Event.Builder builderForValue)

public Assessment.Builder setEvent(Event.Builder builderForValue)

The event being assessed.

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

Parameter
NameDescription
builderForValueEvent.Builder
Returns
TypeDescription
Assessment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Assessment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Assessment.Builder
Overrides

setName(String value)

public Assessment.Builder setName(String value)

Output only. The resource name for the Assessment in the format "projects/{project}/assessments/{assessment}".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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}/assessments/{assessment}".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Assessment.Builder

This builder for chaining.

setPrivatePasswordLeakVerification(PrivatePasswordLeakVerification value)

public Assessment.Builder setPrivatePasswordLeakVerification(PrivatePasswordLeakVerification value)

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Parameter
NameDescription
valuePrivatePasswordLeakVerification
Returns
TypeDescription
Assessment.Builder

setPrivatePasswordLeakVerification(PrivatePasswordLeakVerification.Builder builderForValue)

public Assessment.Builder setPrivatePasswordLeakVerification(PrivatePasswordLeakVerification.Builder builderForValue)

Password leak verification info.

.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8;

Parameter
NameDescription
builderForValuePrivatePasswordLeakVerification.Builder
Returns
TypeDescription
Assessment.Builder

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

public Assessment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Assessment.Builder
Overrides

setRiskAnalysis(RiskAnalysis value)

public Assessment.Builder setRiskAnalysis(RiskAnalysis value)

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

Parameter
NameDescription
valueRiskAnalysis
Returns
TypeDescription
Assessment.Builder

setRiskAnalysis(RiskAnalysis.Builder builderForValue)

public Assessment.Builder setRiskAnalysis(RiskAnalysis.Builder builderForValue)

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

Parameter
NameDescription
builderForValueRiskAnalysis.Builder
Returns
TypeDescription
Assessment.Builder

setTokenProperties(TokenProperties value)

public Assessment.Builder setTokenProperties(TokenProperties value)

Output only. Properties of the provided event token.

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

Parameter
NameDescription
valueTokenProperties
Returns
TypeDescription
Assessment.Builder

setTokenProperties(TokenProperties.Builder builderForValue)

public Assessment.Builder setTokenProperties(TokenProperties.Builder builderForValue)

Output only. Properties of the provided event token.

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

Parameter
NameDescription
builderForValueTokenProperties.Builder
Returns
TypeDescription
Assessment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Assessment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Assessment.Builder
Overrides