Represents a RecaptchaEnterpriseServiceV1Beta1
Inheritance
$protobuf.rpc.Service > protos.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Package
@google-cloud/recaptcha-enterpriseConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new RecaptchaEnterpriseServiceV1Beta1 service.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
request |
IAnnotateAssessmentRequest
AnnotateAssessmentRequest message or plain object |
callback |
AnnotateAssessmentCallback
Node-style callback called with the error, if any, and AnnotateAssessmentResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
annotateAssessment(request)
public annotateAssessment(request: google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest): Promise<google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>;Calls AnnotateAssessment.
| Parameter | |
|---|---|
| Name | Description |
request |
IAnnotateAssessmentRequest
AnnotateAssessmentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ICreateAssessmentRequest
CreateAssessmentRequest message or plain object |
callback |
CreateAssessmentCallback
Node-style callback called with the error, if any, and Assessment |
| Returns | |
|---|---|
| Type | Description |
void |
|
createAssessment(request)
public createAssessment(request: google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest): Promise<google.cloud.recaptchaenterprise.v1beta1.Assessment>;Calls CreateAssessment.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateAssessmentRequest
CreateAssessmentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.recaptchaenterprise.v1beta1.Assessment> |
Promise |