AccountVerificationInfo

google.cloud.recaptchaenterprise.v1. AccountVerificationInfo

Represents an AccountVerificationInfo.

Constructor

new AccountVerificationInfo(propertiesopt)

Constructs a new AccountVerificationInfo.

Parameters:
Name Type Attributes Description
properties google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo <optional>

Properties to set

Implements:
  • IAccountVerificationInfo

Members

endpoints

AccountVerificationInfo endpoints.

languageCode

AccountVerificationInfo languageCode.

latestVerificationResult

AccountVerificationInfo latestVerificationResult.

username

AccountVerificationInfo username.

Result

Result enum.

Properties:
Name Type Description
RESULT_UNSPECIFIED number

RESULT_UNSPECIFIED value

SUCCESS_USER_VERIFIED number

SUCCESS_USER_VERIFIED value

ERROR_USER_NOT_VERIFIED number

ERROR_USER_NOT_VERIFIED value

ERROR_SITE_ONBOARDING_INCOMPLETE number

ERROR_SITE_ONBOARDING_INCOMPLETE value

ERROR_RECIPIENT_NOT_ALLOWED number

ERROR_RECIPIENT_NOT_ALLOWED value

ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED number

ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED value

ERROR_CRITICAL_INTERNAL number

ERROR_CRITICAL_INTERNAL value

ERROR_CUSTOMER_QUOTA_EXHAUSTED number

ERROR_CUSTOMER_QUOTA_EXHAUSTED value

ERROR_VERIFICATION_BYPASSED number

ERROR_VERIFICATION_BYPASSED value

ERROR_VERDICT_MISMATCH number

ERROR_VERDICT_MISMATCH value

Methods

toJSON() → {Object.<string, *>}

Converts this AccountVerificationInfo to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo}

Creates a new AccountVerificationInfo instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo <optional>

Properties to set

Returns:
Type Description
google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

AccountVerificationInfo instance

(static) decode(reader, lengthopt) → {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo}

Decodes an AccountVerificationInfo message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

AccountVerificationInfo

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo}

Decodes an AccountVerificationInfo message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

AccountVerificationInfo

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified AccountVerificationInfo message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo

AccountVerificationInfo message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified AccountVerificationInfo message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo

AccountVerificationInfo message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo}

Creates an AccountVerificationInfo message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

AccountVerificationInfo

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for AccountVerificationInfo

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from an AccountVerificationInfo message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

AccountVerificationInfo

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies an AccountVerificationInfo message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not