public abstract class RecaptchaEnterpriseServiceV1Beta1Client
RecaptchaEnterpriseServiceV1Beta1 client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.RecaptchaEnterprise.V1Beta1Assembly
Google.Cloud.RecaptchaEnterprise.V1Beta1.dll
Remarks
Service to determine the likelihood an event is legitimate.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the RecaptchaEnterpriseServiceV1Beta1 service, which is a host of "recaptchaenterprise.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default RecaptchaEnterpriseServiceV1Beta1 scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default RecaptchaEnterpriseServiceV1Beta1 scopes are:
GrpcClient
public virtual RecaptchaEnterpriseServiceV1Beta1.RecaptchaEnterpriseServiceV1Beta1Client GrpcClient { get; }
The underlying gRPC RecaptchaEnterpriseServiceV1Beta1 client
Property Value | |
---|---|
Type | Description |
RecaptchaEnterpriseServiceV1Beta1.RecaptchaEnterpriseServiceV1Beta1Client |
Methods
AnnotateAssessment(AnnotateAssessmentRequest, CallSettings)
public virtual AnnotateAssessmentResponse AnnotateAssessment(AnnotateAssessmentRequest request, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
request | AnnotateAssessmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnnotateAssessmentResponse | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
{
AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
Reasons =
{
AnnotateAssessmentRequest.Types.Reason.Unspecified,
},
HashedAccountId = ByteString.Empty,
};
// Make the request
AnnotateAssessmentResponse response = recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessment(request);
AnnotateAssessment(AssessmentName, AnnotateAssessmentRequest.Types.Annotation, CallSettings)
public virtual AnnotateAssessmentResponse AnnotateAssessment(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | AssessmentName Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnnotateAssessmentResponse | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessment(name, annotation);
AnnotateAssessment(String, AnnotateAssessmentRequest.Types.Annotation, CallSettings)
public virtual AnnotateAssessmentResponse AnnotateAssessment(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnnotateAssessmentResponse | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessment(name, annotation);
AnnotateAssessmentAsync(AnnotateAssessmentRequest, CallSettings)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AnnotateAssessmentRequest request, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
request | AnnotateAssessmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
{
AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
Reasons =
{
AnnotateAssessmentRequest.Types.Reason.Unspecified,
},
HashedAccountId = ByteString.Empty,
};
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(request);
AnnotateAssessmentAsync(AnnotateAssessmentRequest, CancellationToken)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AnnotateAssessmentRequest request, CancellationToken cancellationToken)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
request | AnnotateAssessmentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
{
AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
Reasons =
{
AnnotateAssessmentRequest.Types.Reason.Unspecified,
},
HashedAccountId = ByteString.Empty,
};
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(request);
AnnotateAssessmentAsync(AssessmentName, AnnotateAssessmentRequest.Types.Annotation, CallSettings)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | AssessmentName Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(name, annotation);
AnnotateAssessmentAsync(AssessmentName, AnnotateAssessmentRequest.Types.Annotation, CancellationToken)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CancellationToken cancellationToken)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | AssessmentName Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(name, annotation);
AnnotateAssessmentAsync(String, AnnotateAssessmentRequest.Types.Annotation, CallSettings)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(name, annotation);
AnnotateAssessmentAsync(String, AnnotateAssessmentRequest.Types.Annotation, CancellationToken)
public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CancellationToken cancellationToken)
Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}". |
annotation | AnnotateAssessmentRequest.Types.Annotation Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<AnnotateAssessmentResponse> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(name, annotation);
Create()
public static RecaptchaEnterpriseServiceV1Beta1Client Create()
Synchronously creates a RecaptchaEnterpriseServiceV1Beta1Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RecaptchaEnterpriseServiceV1Beta1ClientBuilder.
Returns | |
---|---|
Type | Description |
RecaptchaEnterpriseServiceV1Beta1Client | The created RecaptchaEnterpriseServiceV1Beta1Client. |
CreateAssessment(ProjectName, Assessment, CallSettings)
public virtual Assessment CreateAssessment(ProjectName parent, Assessment assessment, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Assessment | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Assessment assessment = new Assessment();
// Make the request
Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(parent, assessment);
CreateAssessment(CreateAssessmentRequest, CallSettings)
public virtual Assessment CreateAssessment(CreateAssessmentRequest request, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
request | CreateAssessmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Assessment | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
CreateAssessmentRequest request = new CreateAssessmentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Assessment = new Assessment(),
};
// Make the request
Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(request);
CreateAssessment(String, Assessment, CallSettings)
public virtual Assessment CreateAssessment(string parent, Assessment assessment, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | String Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Assessment | The RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Assessment assessment = new Assessment();
// Make the request
Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(parent, assessment);
CreateAssessmentAsync(ProjectName, Assessment, CallSettings)
public virtual Task<Assessment> CreateAssessmentAsync(ProjectName parent, Assessment assessment, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Assessment assessment = new Assessment();
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(parent, assessment);
CreateAssessmentAsync(ProjectName, Assessment, CancellationToken)
public virtual Task<Assessment> CreateAssessmentAsync(ProjectName parent, Assessment assessment, CancellationToken cancellationToken)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Assessment assessment = new Assessment();
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(parent, assessment);
CreateAssessmentAsync(CreateAssessmentRequest, CallSettings)
public virtual Task<Assessment> CreateAssessmentAsync(CreateAssessmentRequest request, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
request | CreateAssessmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
CreateAssessmentRequest request = new CreateAssessmentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Assessment = new Assessment(),
};
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(request);
CreateAssessmentAsync(CreateAssessmentRequest, CancellationToken)
public virtual Task<Assessment> CreateAssessmentAsync(CreateAssessmentRequest request, CancellationToken cancellationToken)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
request | CreateAssessmentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
CreateAssessmentRequest request = new CreateAssessmentRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Assessment = new Assessment(),
};
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(request);
CreateAssessmentAsync(String, Assessment, CallSettings)
public virtual Task<Assessment> CreateAssessmentAsync(string parent, Assessment assessment, CallSettings callSettings = null)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | String Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Assessment assessment = new Assessment();
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(parent, assessment);
CreateAssessmentAsync(String, Assessment, CancellationToken)
public virtual Task<Assessment> CreateAssessmentAsync(string parent, Assessment assessment, CancellationToken cancellationToken)
Creates an Assessment of the likelihood an event is legitimate.
Parameters | |
---|---|
Name | Description |
parent | String Required. The name of the project in which the assessment will be created, in the format "projects/{project_number}". |
assessment | Assessment Required. The assessment details. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Assessment> | A Task containing the RPC response. |
// Create client
RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Assessment assessment = new Assessment();
// Make the request
Assessment response = await recaptchaEnterpriseServiceV1Beta1Client.CreateAssessmentAsync(parent, assessment);
CreateAsync(CancellationToken)
public static Task<RecaptchaEnterpriseServiceV1Beta1Client> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a RecaptchaEnterpriseServiceV1Beta1Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RecaptchaEnterpriseServiceV1Beta1ClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<RecaptchaEnterpriseServiceV1Beta1Client> | The task representing the created RecaptchaEnterpriseServiceV1Beta1Client. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.