public abstract class RecaptchaEnterpriseServiceV1Beta1Client
Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1beta1 API 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 |
IReadOnlyListstring |
The default RecaptchaEnterpriseServiceV1Beta1 scopes are:
GrpcClient
public virtual RecaptchaEnterpriseServiceV1Beta1.RecaptchaEnterpriseServiceV1Beta1Client GrpcClient { get; }
The underlying gRPC RecaptchaEnterpriseServiceV1Beta1 client
Property Value | |
---|---|
Type | Description |
RecaptchaEnterpriseServiceV1Beta1RecaptchaEnterpriseServiceV1Beta1Client |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
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,
TransactionEvent = new TransactionEvent(),
};
// Make the request
AnnotateAssessmentResponse response = recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessment(request);
AnnotateAssessment(AssessmentName, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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 |
TaskAnnotateAssessmentResponse | 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,
TransactionEvent = new TransactionEvent(),
};
// 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 |
TaskAnnotateAssessmentResponse | 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,
TransactionEvent = new TransactionEvent(),
};
// Make the request
AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessmentAsync(request);
AnnotateAssessmentAsync(AssessmentName, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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 |
TaskAnnotateAssessmentResponse | 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, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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 |
TaskAnnotateAssessmentResponse | 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, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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 |
TaskAnnotateAssessmentResponse | 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, 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
|
annotation | AnnotateAssessmentRequestTypesAnnotation 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 |
TaskAnnotateAssessmentResponse | 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 |
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 |
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 |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAssessment | 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 |
assessment | Assessment Required. The assessment details. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAssessment | 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 |
TaskAssessment | 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 |
TaskAssessment | 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 |
assessment | Assessment Required. The assessment details. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAssessment | 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 |
assessment | Assessment Required. The assessment details. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAssessment | 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)
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 |
TaskRecaptchaEnterpriseServiceV1Beta1Client | 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.