RecaptchaEnterpriseServiceV1Beta1

google.cloud.recaptchaenterprise.v1beta1. RecaptchaEnterpriseServiceV1Beta1

Represents a RecaptchaEnterpriseServiceV1Beta1

Constructor

new RecaptchaEnterpriseServiceV1Beta1(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new RecaptchaEnterpriseServiceV1Beta1 service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

annotateAssessment(request, callback) → {undefined}

Calls AnnotateAssessment.

Parameters:
Name Type Description
request google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest

AnnotateAssessmentRequest message or plain object

callback google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessmentCallback

Node-style callback called with the error, if any, and AnnotateAssessmentResponse

Returns:
Type Description
undefined

annotateAssessment(request) → {Promise.<google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>}

Calls AnnotateAssessment.

Parameters:
Name Type Description
request google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest

AnnotateAssessmentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>

Promise

createAssessment(request, callback) → {undefined}

Calls CreateAssessment.

Parameters:
Name Type Description
request google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest

CreateAssessmentRequest message or plain object

callback google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessmentCallback

Node-style callback called with the error, if any, and Assessment

Returns:
Type Description
undefined

createAssessment(request) → {Promise.<google.cloud.recaptchaenterprise.v1beta1.Assessment>}

Calls CreateAssessment.

Parameters:
Name Type Description
request google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest

CreateAssessmentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.recaptchaenterprise.v1beta1.Assessment>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {RecaptchaEnterpriseServiceV1Beta1}

Creates new RecaptchaEnterpriseServiceV1Beta1 service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
RecaptchaEnterpriseServiceV1Beta1

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

AnnotateAssessmentCallback(error, responseopt)

Callback as used by annotateAssessment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse <optional>

AnnotateAssessmentResponse

CreateAssessmentCallback(error, responseopt)

Callback as used by createAssessment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.recaptchaenterprise.v1beta1.Assessment <optional>

Assessment