Class protos.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1 (3.0.4)

Represents a RecaptchaEnterpriseServiceV1Beta1

Inheritance

$protobuf.rpc.Service > protos.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1

Package

@google-cloud/recaptcha-enterprise

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new RecaptchaEnterpriseServiceV1Beta1 service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

annotateAssessment(request, callback)

public annotateAssessment(request: google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest, callback: google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessmentCallback): void;

Calls AnnotateAssessment.

Parameters
NameDescription
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
TypeDescription
void

annotateAssessment(request)

public annotateAssessment(request: google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest): Promise<google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>;

Calls AnnotateAssessment.

Parameter
NameDescription
request google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest

AnnotateAssessmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RecaptchaEnterpriseServiceV1Beta1;

Creates new RecaptchaEnterpriseServiceV1Beta1 service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
RecaptchaEnterpriseServiceV1Beta1

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

createAssessment(request, callback)

public createAssessment(request: google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest, callback: google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessmentCallback): void;

Calls CreateAssessment.

Parameters
NameDescription
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
TypeDescription
void

createAssessment(request)

public createAssessment(request: google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest): Promise<google.cloud.recaptchaenterprise.v1beta1.Assessment>;

Calls CreateAssessment.

Parameter
NameDescription
request google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest

CreateAssessmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1beta1.Assessment>

Promise