Class protos.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService (2.2.1)

Represents a RecaptchaEnterpriseService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService

Package

@google-cloud/recaptcha-enterprise!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RecaptchaEnterpriseService 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.v1.IAnnotateAssessmentRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessmentCallback): void;

Calls AnnotateAssessment.

Parameters
NameDescription
request IAnnotateAssessmentRequest

AnnotateAssessmentRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessmentCallback

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

Returns
TypeDescription
void

annotateAssessment(request)

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

Calls AnnotateAssessment.

Parameter
NameDescription
request IAnnotateAssessmentRequest

AnnotateAssessmentRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new RecaptchaEnterpriseService 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
RecaptchaEnterpriseService

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

createAssessment(request, callback)

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

Calls CreateAssessment.

Parameters
NameDescription
request ICreateAssessmentRequest

CreateAssessmentRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessmentCallback

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

Returns
TypeDescription
void

createAssessment(request)

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

Calls CreateAssessment.

Parameter
NameDescription
request ICreateAssessmentRequest

CreateAssessmentRequest message or plain object

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

Promise

createKey(request, callback)

public createKey(request: google.cloud.recaptchaenterprise.v1.ICreateKeyRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKeyCallback): void;

Calls CreateKey.

Parameters
NameDescription
request ICreateKeyRequest

CreateKeyRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKeyCallback

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

Returns
TypeDescription
void

createKey(request)

public createKey(request: google.cloud.recaptchaenterprise.v1.ICreateKeyRequest): Promise<google.cloud.recaptchaenterprise.v1.Key>;

Calls CreateKey.

Parameter
NameDescription
request ICreateKeyRequest

CreateKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1.Key>

Promise

deleteKey(request, callback)

public deleteKey(request: google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKeyCallback): void;

Calls DeleteKey.

Parameters
NameDescription
request IDeleteKeyRequest

DeleteKeyRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKeyCallback

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

Returns
TypeDescription
void

deleteKey(request)

public deleteKey(request: google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest): Promise<google.protobuf.Empty>;

Calls DeleteKey.

Parameter
NameDescription
request IDeleteKeyRequest

DeleteKeyRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getKey(request, callback)

public getKey(request: google.cloud.recaptchaenterprise.v1.IGetKeyRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKeyCallback): void;

Calls GetKey.

Parameters
NameDescription
request IGetKeyRequest

GetKeyRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKeyCallback

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

Returns
TypeDescription
void

getKey(request)

public getKey(request: google.cloud.recaptchaenterprise.v1.IGetKeyRequest): Promise<google.cloud.recaptchaenterprise.v1.Key>;

Calls GetKey.

Parameter
NameDescription
request IGetKeyRequest

GetKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1.Key>

Promise

listKeys(request, callback)

public listKeys(request: google.cloud.recaptchaenterprise.v1.IListKeysRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeysCallback): void;

Calls ListKeys.

Parameters
NameDescription
request IListKeysRequest

ListKeysRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeysCallback

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

Returns
TypeDescription
void

listKeys(request)

public listKeys(request: google.cloud.recaptchaenterprise.v1.IListKeysRequest): Promise<google.cloud.recaptchaenterprise.v1.ListKeysResponse>;

Calls ListKeys.

Parameter
NameDescription
request IListKeysRequest

ListKeysRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1.ListKeysResponse>

Promise

updateKey(request, callback)

public updateKey(request: google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKeyCallback): void;

Calls UpdateKey.

Parameters
NameDescription
request google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest

UpdateKeyRequest message or plain object

callback google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKeyCallback

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

Returns
TypeDescription
void

updateKey(request)

public updateKey(request: google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest): Promise<google.cloud.recaptchaenterprise.v1.Key>;

Calls UpdateKey.

Parameter
NameDescription
request google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest

UpdateKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recaptchaenterprise.v1.Key>

Promise