public abstract class EvaluationServiceClientReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class EvaluationServiceClient.
EvaluationService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Remarks
EvaluationService exposes methods to perform evaluation for the CES app.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the EvaluationService service, which is a host of "ces.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default EvaluationService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default EvaluationService scopes are:
DeleteEvaluationRunOperationsClient
public virtual OperationsClient DeleteEvaluationRunOperationsClient { get; }The long-running operations client for DeleteEvaluationRun.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GenerateEvaluationOperationsClient
public virtual OperationsClient GenerateEvaluationOperationsClient { get; }The long-running operations client for GenerateEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual EvaluationService.EvaluationServiceClient GrpcClient { get; }The underlying gRPC EvaluationService client
| Property Value | |
|---|---|
| Type | Description |
EvaluationServiceEvaluationServiceClient |
|
ImportEvaluationsOperationsClient
public virtual OperationsClient ImportEvaluationsOperationsClient { get; }The long-running operations client for ImportEvaluations.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
LocationsClient
public virtual LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
RunEvaluationOperationsClient
public virtual OperationsClient RunEvaluationOperationsClient { get; }The long-running operations client for RunEvaluation.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
Create()
public static EvaluationServiceClient Create()Synchronously creates a EvaluationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EvaluationServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
EvaluationServiceClient |
The created EvaluationServiceClient. |
CreateAsync(CancellationToken)
public static Task<EvaluationServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a EvaluationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EvaluationServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationServiceClient |
The task representing the created EvaluationServiceClient. |
CreateEvaluation(AppName, Evaluation, CallSettings)
public virtual Evaluation CreateEvaluation(AppName parent, Evaluation evaluation, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = evaluationServiceClient.CreateEvaluation(parent, evaluation);
CreateEvaluation(AppName, Evaluation, string, CallSettings)
public virtual Evaluation CreateEvaluation(AppName parent, Evaluation evaluation, string evaluationId, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = evaluationServiceClient.CreateEvaluation(parent, evaluation, evaluationId);
CreateEvaluation(CreateEvaluationRequest, CallSettings)
public virtual Evaluation CreateEvaluation(CreateEvaluationRequest request, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
CreateEvaluationRequest request = new CreateEvaluationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationId = "",
Evaluation = new Evaluation(),
};
// Make the request
Evaluation response = evaluationServiceClient.CreateEvaluation(request);
CreateEvaluation(string, Evaluation, CallSettings)
public virtual Evaluation CreateEvaluation(string parent, Evaluation evaluation, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = evaluationServiceClient.CreateEvaluation(parent, evaluation);
CreateEvaluation(string, Evaluation, string, CallSettings)
public virtual Evaluation CreateEvaluation(string parent, Evaluation evaluation, string evaluationId, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = evaluationServiceClient.CreateEvaluation(parent, evaluation, evaluationId);
CreateEvaluationAsync(AppName, Evaluation, CallSettings)
public virtual Task<Evaluation> CreateEvaluationAsync(AppName parent, Evaluation evaluation, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation);
CreateEvaluationAsync(AppName, Evaluation, string, CallSettings)
public virtual Task<Evaluation> CreateEvaluationAsync(AppName parent, Evaluation evaluation, string evaluationId, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation, evaluationId);
CreateEvaluationAsync(AppName, Evaluation, string, CancellationToken)
public virtual Task<Evaluation> CreateEvaluationAsync(AppName parent, Evaluation evaluation, string evaluationId, CancellationToken cancellationToken)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation, evaluationId);
CreateEvaluationAsync(AppName, Evaluation, CancellationToken)
public virtual Task<Evaluation> CreateEvaluationAsync(AppName parent, Evaluation evaluation, CancellationToken cancellationToken)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation);
CreateEvaluationAsync(CreateEvaluationRequest, CallSettings)
public virtual Task<Evaluation> CreateEvaluationAsync(CreateEvaluationRequest request, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationRequest request = new CreateEvaluationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationId = "",
Evaluation = new Evaluation(),
};
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(request);
CreateEvaluationAsync(CreateEvaluationRequest, CancellationToken)
public virtual Task<Evaluation> CreateEvaluationAsync(CreateEvaluationRequest request, CancellationToken cancellationToken)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationRequest request = new CreateEvaluationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationId = "",
Evaluation = new Evaluation(),
};
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(request);
CreateEvaluationAsync(string, Evaluation, CallSettings)
public virtual Task<Evaluation> CreateEvaluationAsync(string parent, Evaluation evaluation, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation);
CreateEvaluationAsync(string, Evaluation, string, CallSettings)
public virtual Task<Evaluation> CreateEvaluationAsync(string parent, Evaluation evaluation, string evaluationId, CallSettings callSettings = null)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation, evaluationId);
CreateEvaluationAsync(string, Evaluation, string, CancellationToken)
public virtual Task<Evaluation> CreateEvaluationAsync(string parent, Evaluation evaluation, string evaluationId, CancellationToken cancellationToken)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
evaluationId |
stringOptional. The ID to use for the evaluation, which will become the final component of the evaluation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
string evaluationId = "";
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation, evaluationId);
CreateEvaluationAsync(string, Evaluation, CancellationToken)
public virtual Task<Evaluation> CreateEvaluationAsync(string parent, Evaluation evaluation, CancellationToken cancellationToken)Creates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluation |
EvaluationRequired. The evaluation to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
Evaluation evaluation = new Evaluation();
// Make the request
Evaluation response = await evaluationServiceClient.CreateEvaluationAsync(parent, evaluation);
CreateEvaluationDataset(AppName, EvaluationDataset, CallSettings)
public virtual EvaluationDataset CreateEvaluationDataset(AppName parent, EvaluationDataset evaluationDataset, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = evaluationServiceClient.CreateEvaluationDataset(parent, evaluationDataset);
CreateEvaluationDataset(AppName, EvaluationDataset, string, CallSettings)
public virtual EvaluationDataset CreateEvaluationDataset(AppName parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = evaluationServiceClient.CreateEvaluationDataset(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDataset(CreateEvaluationDatasetRequest, CallSettings)
public virtual EvaluationDataset CreateEvaluationDataset(CreateEvaluationDatasetRequest request, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
CreateEvaluationDatasetRequest request = new CreateEvaluationDatasetRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationDatasetId = "",
EvaluationDataset = new EvaluationDataset(),
};
// Make the request
EvaluationDataset response = evaluationServiceClient.CreateEvaluationDataset(request);
CreateEvaluationDataset(string, EvaluationDataset, CallSettings)
public virtual EvaluationDataset CreateEvaluationDataset(string parent, EvaluationDataset evaluationDataset, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = evaluationServiceClient.CreateEvaluationDataset(parent, evaluationDataset);
CreateEvaluationDataset(string, EvaluationDataset, string, CallSettings)
public virtual EvaluationDataset CreateEvaluationDataset(string parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = evaluationServiceClient.CreateEvaluationDataset(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDatasetAsync(AppName, EvaluationDataset, CallSettings)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(AppName parent, EvaluationDataset evaluationDataset, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset);
CreateEvaluationDatasetAsync(AppName, EvaluationDataset, string, CallSettings)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(AppName parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDatasetAsync(AppName, EvaluationDataset, string, CancellationToken)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(AppName parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CancellationToken cancellationToken)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDatasetAsync(AppName, EvaluationDataset, CancellationToken)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(AppName parent, EvaluationDataset evaluationDataset, CancellationToken cancellationToken)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset);
CreateEvaluationDatasetAsync(CreateEvaluationDatasetRequest, CallSettings)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(CreateEvaluationDatasetRequest request, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationDatasetRequest request = new CreateEvaluationDatasetRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationDatasetId = "",
EvaluationDataset = new EvaluationDataset(),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(request);
CreateEvaluationDatasetAsync(CreateEvaluationDatasetRequest, CancellationToken)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(CreateEvaluationDatasetRequest request, CancellationToken cancellationToken)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationDatasetRequest request = new CreateEvaluationDatasetRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationDatasetId = "",
EvaluationDataset = new EvaluationDataset(),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(request);
CreateEvaluationDatasetAsync(string, EvaluationDataset, CallSettings)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(string parent, EvaluationDataset evaluationDataset, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset);
CreateEvaluationDatasetAsync(string, EvaluationDataset, string, CallSettings)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(string parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CallSettings callSettings = null)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDatasetAsync(string, EvaluationDataset, string, CancellationToken)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(string parent, EvaluationDataset evaluationDataset, string evaluationDatasetId, CancellationToken cancellationToken)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
evaluationDatasetId |
stringOptional. The ID to use for the evaluation dataset, which will become the final component of the evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for the evaluation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
string evaluationDatasetId = "";
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset, evaluationDatasetId);
CreateEvaluationDatasetAsync(string, EvaluationDataset, CancellationToken)
public virtual Task<EvaluationDataset> CreateEvaluationDatasetAsync(string parent, EvaluationDataset evaluationDataset, CancellationToken cancellationToken)Creates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation for.
Format:
|
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationDataset evaluationDataset = new EvaluationDataset();
// Make the request
EvaluationDataset response = await evaluationServiceClient.CreateEvaluationDatasetAsync(parent, evaluationDataset);
CreateEvaluationExpectation(AppName, EvaluationExpectation, CallSettings)
public virtual EvaluationExpectation CreateEvaluationExpectation(AppName parent, EvaluationExpectation evaluationExpectation, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = evaluationServiceClient.CreateEvaluationExpectation(parent, evaluationExpectation);
CreateEvaluationExpectation(AppName, EvaluationExpectation, string, CallSettings)
public virtual EvaluationExpectation CreateEvaluationExpectation(AppName parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = evaluationServiceClient.CreateEvaluationExpectation(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectation(CreateEvaluationExpectationRequest, CallSettings)
public virtual EvaluationExpectation CreateEvaluationExpectation(CreateEvaluationExpectationRequest request, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
CreateEvaluationExpectationRequest request = new CreateEvaluationExpectationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationExpectationId = "",
EvaluationExpectation = new EvaluationExpectation(),
};
// Make the request
EvaluationExpectation response = evaluationServiceClient.CreateEvaluationExpectation(request);
CreateEvaluationExpectation(string, EvaluationExpectation, CallSettings)
public virtual EvaluationExpectation CreateEvaluationExpectation(string parent, EvaluationExpectation evaluationExpectation, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = evaluationServiceClient.CreateEvaluationExpectation(parent, evaluationExpectation);
CreateEvaluationExpectation(string, EvaluationExpectation, string, CallSettings)
public virtual EvaluationExpectation CreateEvaluationExpectation(string parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = evaluationServiceClient.CreateEvaluationExpectation(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectationAsync(AppName, EvaluationExpectation, CallSettings)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(AppName parent, EvaluationExpectation evaluationExpectation, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation);
CreateEvaluationExpectationAsync(AppName, EvaluationExpectation, string, CallSettings)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(AppName parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectationAsync(AppName, EvaluationExpectation, string, CancellationToken)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(AppName parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CancellationToken cancellationToken)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectationAsync(AppName, EvaluationExpectation, CancellationToken)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(AppName parent, EvaluationExpectation evaluationExpectation, CancellationToken cancellationToken)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation);
CreateEvaluationExpectationAsync(CreateEvaluationExpectationRequest, CallSettings)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(CreateEvaluationExpectationRequest request, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationExpectationRequest request = new CreateEvaluationExpectationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationExpectationId = "",
EvaluationExpectation = new EvaluationExpectation(),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(request);
CreateEvaluationExpectationAsync(CreateEvaluationExpectationRequest, CancellationToken)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(CreateEvaluationExpectationRequest request, CancellationToken cancellationToken)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEvaluationExpectationRequest request = new CreateEvaluationExpectationRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationExpectationId = "",
EvaluationExpectation = new EvaluationExpectation(),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(request);
CreateEvaluationExpectationAsync(string, EvaluationExpectation, CallSettings)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(string parent, EvaluationExpectation evaluationExpectation, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation);
CreateEvaluationExpectationAsync(string, EvaluationExpectation, string, CallSettings)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(string parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CallSettings callSettings = null)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectationAsync(string, EvaluationExpectation, string, CancellationToken)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(string parent, EvaluationExpectation evaluationExpectation, string evaluationExpectationId, CancellationToken cancellationToken)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
evaluationExpectationId |
stringOptional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation's resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
string evaluationExpectationId = "";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation, evaluationExpectationId);
CreateEvaluationExpectationAsync(string, EvaluationExpectation, CancellationToken)
public virtual Task<EvaluationExpectation> CreateEvaluationExpectationAsync(string parent, EvaluationExpectation evaluationExpectation, CancellationToken cancellationToken)Creates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the evaluation expectation for.
Format:
|
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.CreateEvaluationExpectationAsync(parent, evaluationExpectation);
CreateScheduledEvaluationRun(AppName, ScheduledEvaluationRun, CallSettings)
public virtual ScheduledEvaluationRun CreateScheduledEvaluationRun(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.CreateScheduledEvaluationRun(parent, scheduledEvaluationRun);
CreateScheduledEvaluationRun(AppName, ScheduledEvaluationRun, string, CallSettings)
public virtual ScheduledEvaluationRun CreateScheduledEvaluationRun(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.CreateScheduledEvaluationRun(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRun(CreateScheduledEvaluationRunRequest, CallSettings)
public virtual ScheduledEvaluationRun CreateScheduledEvaluationRun(CreateScheduledEvaluationRunRequest request, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
CreateScheduledEvaluationRunRequest request = new CreateScheduledEvaluationRunRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ScheduledEvaluationRunId = "",
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
};
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.CreateScheduledEvaluationRun(request);
CreateScheduledEvaluationRun(string, ScheduledEvaluationRun, CallSettings)
public virtual ScheduledEvaluationRun CreateScheduledEvaluationRun(string parent, ScheduledEvaluationRun scheduledEvaluationRun, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.CreateScheduledEvaluationRun(parent, scheduledEvaluationRun);
CreateScheduledEvaluationRun(string, ScheduledEvaluationRun, string, CallSettings)
public virtual ScheduledEvaluationRun CreateScheduledEvaluationRun(string parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.CreateScheduledEvaluationRun(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRunAsync(AppName, ScheduledEvaluationRun, CallSettings)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun);
CreateScheduledEvaluationRunAsync(AppName, ScheduledEvaluationRun, string, CallSettings)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRunAsync(AppName, ScheduledEvaluationRun, string, CancellationToken)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CancellationToken cancellationToken)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRunAsync(AppName, ScheduledEvaluationRun, CancellationToken)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, CancellationToken cancellationToken)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun);
CreateScheduledEvaluationRunAsync(CreateScheduledEvaluationRunRequest, CallSettings)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(CreateScheduledEvaluationRunRequest request, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateScheduledEvaluationRunRequest request = new CreateScheduledEvaluationRunRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ScheduledEvaluationRunId = "",
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(request);
CreateScheduledEvaluationRunAsync(CreateScheduledEvaluationRunRequest, CancellationToken)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(CreateScheduledEvaluationRunRequest request, CancellationToken cancellationToken)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateScheduledEvaluationRunRequest request = new CreateScheduledEvaluationRunRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ScheduledEvaluationRunId = "",
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(request);
CreateScheduledEvaluationRunAsync(string, ScheduledEvaluationRun, CallSettings)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(string parent, ScheduledEvaluationRun scheduledEvaluationRun, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun);
CreateScheduledEvaluationRunAsync(string, ScheduledEvaluationRun, string, CallSettings)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(string parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CallSettings callSettings = null)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRunAsync(string, ScheduledEvaluationRun, string, CancellationToken)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(string parent, ScheduledEvaluationRun scheduledEvaluationRun, string scheduledEvaluationRunId, CancellationToken cancellationToken)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
scheduledEvaluationRunId |
stringOptional. The ID to use for the scheduled evaluation run, which will become the final component of the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically assigned. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
string scheduledEvaluationRunId = "";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun, scheduledEvaluationRunId);
CreateScheduledEvaluationRunAsync(string, ScheduledEvaluationRun, CancellationToken)
public virtual Task<ScheduledEvaluationRun> CreateScheduledEvaluationRunAsync(string parent, ScheduledEvaluationRun scheduledEvaluationRun, CancellationToken cancellationToken)Creates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to create the scheduled evaluation run for.
Format:
|
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.CreateScheduledEvaluationRunAsync(parent, scheduledEvaluationRun);
DeleteEvaluation(DeleteEvaluationRequest, CallSettings)
public virtual void DeleteEvaluation(DeleteEvaluationRequest request, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteEvaluationRequest request = new DeleteEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
Force = false,
Etag = "",
};
// Make the request
evaluationServiceClient.DeleteEvaluation(request);
DeleteEvaluation(EvaluationName, CallSettings)
public virtual void DeleteEvaluation(EvaluationName name, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
evaluationServiceClient.DeleteEvaluation(name);
DeleteEvaluation(string, CallSettings)
public virtual void DeleteEvaluation(string name, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
evaluationServiceClient.DeleteEvaluation(name);
DeleteEvaluationAsync(DeleteEvaluationRequest, CallSettings)
public virtual Task DeleteEvaluationAsync(DeleteEvaluationRequest request, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationRequest request = new DeleteEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
Force = false,
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(request);
DeleteEvaluationAsync(DeleteEvaluationRequest, CancellationToken)
public virtual Task DeleteEvaluationAsync(DeleteEvaluationRequest request, CancellationToken cancellationToken)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationRequest request = new DeleteEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
Force = false,
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(request);
DeleteEvaluationAsync(EvaluationName, CallSettings)
public virtual Task DeleteEvaluationAsync(EvaluationName name, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(name);
DeleteEvaluationAsync(EvaluationName, CancellationToken)
public virtual Task DeleteEvaluationAsync(EvaluationName name, CancellationToken cancellationToken)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(name);
DeleteEvaluationAsync(string, CallSettings)
public virtual Task DeleteEvaluationAsync(string name, CallSettings callSettings = null)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(name);
DeleteEvaluationAsync(string, CancellationToken)
public virtual Task DeleteEvaluationAsync(string name, CancellationToken cancellationToken)Deletes an evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
await evaluationServiceClient.DeleteEvaluationAsync(name);
DeleteEvaluationDataset(DeleteEvaluationDatasetRequest, CallSettings)
public virtual void DeleteEvaluationDataset(DeleteEvaluationDatasetRequest request, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteEvaluationDatasetRequest request = new DeleteEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
Etag = "",
};
// Make the request
evaluationServiceClient.DeleteEvaluationDataset(request);
DeleteEvaluationDataset(EvaluationDatasetName, CallSettings)
public virtual void DeleteEvaluationDataset(EvaluationDatasetName name, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
evaluationServiceClient.DeleteEvaluationDataset(name);
DeleteEvaluationDataset(string, CallSettings)
public virtual void DeleteEvaluationDataset(string name, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
evaluationServiceClient.DeleteEvaluationDataset(name);
DeleteEvaluationDatasetAsync(DeleteEvaluationDatasetRequest, CallSettings)
public virtual Task DeleteEvaluationDatasetAsync(DeleteEvaluationDatasetRequest request, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationDatasetRequest request = new DeleteEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(request);
DeleteEvaluationDatasetAsync(DeleteEvaluationDatasetRequest, CancellationToken)
public virtual Task DeleteEvaluationDatasetAsync(DeleteEvaluationDatasetRequest request, CancellationToken cancellationToken)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationDatasetRequest request = new DeleteEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(request);
DeleteEvaluationDatasetAsync(EvaluationDatasetName, CallSettings)
public virtual Task DeleteEvaluationDatasetAsync(EvaluationDatasetName name, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(name);
DeleteEvaluationDatasetAsync(EvaluationDatasetName, CancellationToken)
public virtual Task DeleteEvaluationDatasetAsync(EvaluationDatasetName name, CancellationToken cancellationToken)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(name);
DeleteEvaluationDatasetAsync(string, CallSettings)
public virtual Task DeleteEvaluationDatasetAsync(string name, CallSettings callSettings = null)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(name);
DeleteEvaluationDatasetAsync(string, CancellationToken)
public virtual Task DeleteEvaluationDatasetAsync(string name, CancellationToken cancellationToken)Deletes an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
await evaluationServiceClient.DeleteEvaluationDatasetAsync(name);
DeleteEvaluationExpectation(DeleteEvaluationExpectationRequest, CallSettings)
public virtual void DeleteEvaluationExpectation(DeleteEvaluationExpectationRequest request, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteEvaluationExpectationRequest request = new DeleteEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
Etag = "",
};
// Make the request
evaluationServiceClient.DeleteEvaluationExpectation(request);
DeleteEvaluationExpectation(EvaluationExpectationName, CallSettings)
public virtual void DeleteEvaluationExpectation(EvaluationExpectationName name, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
evaluationServiceClient.DeleteEvaluationExpectation(name);
DeleteEvaluationExpectation(string, CallSettings)
public virtual void DeleteEvaluationExpectation(string name, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
evaluationServiceClient.DeleteEvaluationExpectation(name);
DeleteEvaluationExpectationAsync(DeleteEvaluationExpectationRequest, CallSettings)
public virtual Task DeleteEvaluationExpectationAsync(DeleteEvaluationExpectationRequest request, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationExpectationRequest request = new DeleteEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(request);
DeleteEvaluationExpectationAsync(DeleteEvaluationExpectationRequest, CancellationToken)
public virtual Task DeleteEvaluationExpectationAsync(DeleteEvaluationExpectationRequest request, CancellationToken cancellationToken)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationExpectationRequest request = new DeleteEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(request);
DeleteEvaluationExpectationAsync(EvaluationExpectationName, CallSettings)
public virtual Task DeleteEvaluationExpectationAsync(EvaluationExpectationName name, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(name);
DeleteEvaluationExpectationAsync(EvaluationExpectationName, CancellationToken)
public virtual Task DeleteEvaluationExpectationAsync(EvaluationExpectationName name, CancellationToken cancellationToken)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(name);
DeleteEvaluationExpectationAsync(string, CallSettings)
public virtual Task DeleteEvaluationExpectationAsync(string name, CallSettings callSettings = null)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(name);
DeleteEvaluationExpectationAsync(string, CancellationToken)
public virtual Task DeleteEvaluationExpectationAsync(string name, CancellationToken cancellationToken)Deletes an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
await evaluationServiceClient.DeleteEvaluationExpectationAsync(name);
DeleteEvaluationResult(DeleteEvaluationResultRequest, CallSettings)
public virtual void DeleteEvaluationResult(DeleteEvaluationResultRequest request, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteEvaluationResultRequest request = new DeleteEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
evaluationServiceClient.DeleteEvaluationResult(request);
DeleteEvaluationResult(EvaluationResultName, CallSettings)
public virtual void DeleteEvaluationResult(EvaluationResultName name, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
evaluationServiceClient.DeleteEvaluationResult(name);
DeleteEvaluationResult(string, CallSettings)
public virtual void DeleteEvaluationResult(string name, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
evaluationServiceClient.DeleteEvaluationResult(name);
DeleteEvaluationResultAsync(DeleteEvaluationResultRequest, CallSettings)
public virtual Task DeleteEvaluationResultAsync(DeleteEvaluationResultRequest request, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationResultRequest request = new DeleteEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(request);
DeleteEvaluationResultAsync(DeleteEvaluationResultRequest, CancellationToken)
public virtual Task DeleteEvaluationResultAsync(DeleteEvaluationResultRequest request, CancellationToken cancellationToken)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationResultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationResultRequest request = new DeleteEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(request);
DeleteEvaluationResultAsync(EvaluationResultName, CallSettings)
public virtual Task DeleteEvaluationResultAsync(EvaluationResultName name, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(name);
DeleteEvaluationResultAsync(EvaluationResultName, CancellationToken)
public virtual Task DeleteEvaluationResultAsync(EvaluationResultName name, CancellationToken cancellationToken)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(name);
DeleteEvaluationResultAsync(string, CallSettings)
public virtual Task DeleteEvaluationResultAsync(string name, CallSettings callSettings = null)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(name);
DeleteEvaluationResultAsync(string, CancellationToken)
public virtual Task DeleteEvaluationResultAsync(string name, CancellationToken cancellationToken)Deletes an evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
await evaluationServiceClient.DeleteEvaluationResultAsync(name);
DeleteEvaluationRun(DeleteEvaluationRunRequest, CallSettings)
public virtual Operation<Empty, DeleteEvaluationRunOperationMetadata> DeleteEvaluationRun(DeleteEvaluationRunRequest request, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteEvaluationRunOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteEvaluationRunRequest request = new DeleteEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = evaluationServiceClient.DeleteEvaluationRun(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceDeleteEvaluationRun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRun(EvaluationRunName, CallSettings)
public virtual Operation<Empty, DeleteEvaluationRunOperationMetadata> DeleteEvaluationRun(EvaluationRunName name, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteEvaluationRunOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = evaluationServiceClient.DeleteEvaluationRun(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceDeleteEvaluationRun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRun(string, CallSettings)
public virtual Operation<Empty, DeleteEvaluationRunOperationMetadata> DeleteEvaluationRun(string name, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteEvaluationRunOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = evaluationServiceClient.DeleteEvaluationRun(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceDeleteEvaluationRun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(DeleteEvaluationRunRequest, CallSettings)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(DeleteEvaluationRunRequest request, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationRunRequest request = new DeleteEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(DeleteEvaluationRunRequest, CancellationToken)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(DeleteEvaluationRunRequest request, CancellationToken cancellationToken)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEvaluationRunRequest request = new DeleteEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(EvaluationRunName, CallSettings)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(EvaluationRunName name, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(EvaluationRunName, CancellationToken)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(EvaluationRunName name, CancellationToken cancellationToken)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(string name, CallSettings callSettings = null)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteEvaluationRunAsync(string, CancellationToken)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> DeleteEvaluationRunAsync(string name, CancellationToken cancellationToken)Deletes an evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
Operation<Empty, DeleteEvaluationRunOperationMetadata> response = await evaluationServiceClient.DeleteEvaluationRunAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteEvaluationRunOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteEvaluationRunOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceDeleteEvaluationRunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteScheduledEvaluationRun(DeleteScheduledEvaluationRunRequest, CallSettings)
public virtual void DeleteScheduledEvaluationRun(DeleteScheduledEvaluationRunRequest request, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
DeleteScheduledEvaluationRunRequest request = new DeleteScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
Etag = "",
};
// Make the request
evaluationServiceClient.DeleteScheduledEvaluationRun(request);
DeleteScheduledEvaluationRun(ScheduledEvaluationRunName, CallSettings)
public virtual void DeleteScheduledEvaluationRun(ScheduledEvaluationRunName name, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
evaluationServiceClient.DeleteScheduledEvaluationRun(name);
DeleteScheduledEvaluationRun(string, CallSettings)
public virtual void DeleteScheduledEvaluationRun(string name, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
evaluationServiceClient.DeleteScheduledEvaluationRun(name);
DeleteScheduledEvaluationRunAsync(DeleteScheduledEvaluationRunRequest, CallSettings)
public virtual Task DeleteScheduledEvaluationRunAsync(DeleteScheduledEvaluationRunRequest request, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteScheduledEvaluationRunRequest request = new DeleteScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(request);
DeleteScheduledEvaluationRunAsync(DeleteScheduledEvaluationRunRequest, CancellationToken)
public virtual Task DeleteScheduledEvaluationRunAsync(DeleteScheduledEvaluationRunRequest request, CancellationToken cancellationToken)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteScheduledEvaluationRunRequest request = new DeleteScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
Etag = "",
};
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(request);
DeleteScheduledEvaluationRunAsync(ScheduledEvaluationRunName, CallSettings)
public virtual Task DeleteScheduledEvaluationRunAsync(ScheduledEvaluationRunName name, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(name);
DeleteScheduledEvaluationRunAsync(ScheduledEvaluationRunName, CancellationToken)
public virtual Task DeleteScheduledEvaluationRunAsync(ScheduledEvaluationRunName name, CancellationToken cancellationToken)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(name);
DeleteScheduledEvaluationRunAsync(string, CallSettings)
public virtual Task DeleteScheduledEvaluationRunAsync(string name, CallSettings callSettings = null)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(name);
DeleteScheduledEvaluationRunAsync(string, CancellationToken)
public virtual Task DeleteScheduledEvaluationRunAsync(string name, CancellationToken cancellationToken)Deletes a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
await evaluationServiceClient.DeleteScheduledEvaluationRunAsync(name);
GenerateEvaluation(ConversationName, CallSettings)
public virtual Operation<Evaluation, GenerateEvaluationOperationMetadata> GenerateEvaluation(ConversationName conversation, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
ConversationNameRequired. The conversation to create the golden evaluation for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationGenerateEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ConversationName conversation = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]");
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = evaluationServiceClient.GenerateEvaluation(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceGenerateEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluation(GenerateEvaluationRequest, CallSettings)
public virtual Operation<Evaluation, GenerateEvaluationOperationMetadata> GenerateEvaluation(GenerateEvaluationRequest request, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationGenerateEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GenerateEvaluationRequest request = new GenerateEvaluationRequest
{
ConversationAsConversationName = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"),
};
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = evaluationServiceClient.GenerateEvaluation(request);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceGenerateEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluation(string, CallSettings)
public virtual Operation<Evaluation, GenerateEvaluationOperationMetadata> GenerateEvaluation(string conversation, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
stringRequired. The conversation to create the golden evaluation for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationGenerateEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string conversation = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/conversations/[CONVERSATION]";
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = evaluationServiceClient.GenerateEvaluation(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceGenerateEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(ConversationName, CallSettings)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(ConversationName conversation, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
ConversationNameRequired. The conversation to create the golden evaluation for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversationName conversation = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]");
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(ConversationName, CancellationToken)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(ConversationName conversation, CancellationToken cancellationToken)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
ConversationNameRequired. The conversation to create the golden evaluation for.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ConversationName conversation = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]");
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(GenerateEvaluationRequest, CallSettings)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(GenerateEvaluationRequest request, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateEvaluationRequest request = new GenerateEvaluationRequest
{
ConversationAsConversationName = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"),
};
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(request);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(GenerateEvaluationRequest, CancellationToken)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(GenerateEvaluationRequest request, CancellationToken cancellationToken)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateEvaluationRequest request = new GenerateEvaluationRequest
{
ConversationAsConversationName = ConversationName.FromProjectLocationAppConversation("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"),
};
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(request);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(string, CallSettings)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(string conversation, CallSettings callSettings = null)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
stringRequired. The conversation to create the golden evaluation for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string conversation = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/conversations/[CONVERSATION]";
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GenerateEvaluationAsync(string, CancellationToken)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> GenerateEvaluationAsync(string conversation, CancellationToken cancellationToken)Creates a golden evaluation from a conversation.
| Parameters | |
|---|---|
| Name | Description |
conversation |
stringRequired. The conversation to create the golden evaluation for.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string conversation = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/conversations/[CONVERSATION]";
// Make the request
Operation<Evaluation, GenerateEvaluationOperationMetadata> response = await evaluationServiceClient.GenerateEvaluationAsync(conversation);
// Poll until the returned long-running operation is complete
Operation<Evaluation, GenerateEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Evaluation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Evaluation, GenerateEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceGenerateEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Evaluation retrievedResult = retrievedResponse.Result;
}
GetEvaluation(EvaluationName, CallSettings)
public virtual Evaluation GetEvaluation(EvaluationName name, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
Evaluation response = evaluationServiceClient.GetEvaluation(name);
GetEvaluation(GetEvaluationRequest, CallSettings)
public virtual Evaluation GetEvaluation(GetEvaluationRequest request, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetEvaluationRequest request = new GetEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
};
// Make the request
Evaluation response = evaluationServiceClient.GetEvaluation(request);
GetEvaluation(string, CallSettings)
public virtual Evaluation GetEvaluation(string name, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
Evaluation response = evaluationServiceClient.GetEvaluation(name);
GetEvaluationAsync(EvaluationName, CallSettings)
public virtual Task<Evaluation> GetEvaluationAsync(EvaluationName name, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(name);
GetEvaluationAsync(EvaluationName, CancellationToken)
public virtual Task<Evaluation> GetEvaluationAsync(EvaluationName name, CancellationToken cancellationToken)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationNameRequired. The resource name of the evaluation to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationName name = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(name);
GetEvaluationAsync(GetEvaluationRequest, CallSettings)
public virtual Task<Evaluation> GetEvaluationAsync(GetEvaluationRequest request, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationRequest request = new GetEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
};
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(request);
GetEvaluationAsync(GetEvaluationRequest, CancellationToken)
public virtual Task<Evaluation> GetEvaluationAsync(GetEvaluationRequest request, CancellationToken cancellationToken)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationRequest request = new GetEvaluationRequest
{
EvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
};
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(request);
GetEvaluationAsync(string, CallSettings)
public virtual Task<Evaluation> GetEvaluationAsync(string name, CallSettings callSettings = null)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(name);
GetEvaluationAsync(string, CancellationToken)
public virtual Task<Evaluation> GetEvaluationAsync(string name, CancellationToken cancellationToken)Gets details of the specified evaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
Evaluation response = await evaluationServiceClient.GetEvaluationAsync(name);
GetEvaluationDataset(EvaluationDatasetName, CallSettings)
public virtual EvaluationDataset GetEvaluationDataset(EvaluationDatasetName name, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
EvaluationDataset response = evaluationServiceClient.GetEvaluationDataset(name);
GetEvaluationDataset(GetEvaluationDatasetRequest, CallSettings)
public virtual EvaluationDataset GetEvaluationDataset(GetEvaluationDatasetRequest request, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetEvaluationDatasetRequest request = new GetEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
};
// Make the request
EvaluationDataset response = evaluationServiceClient.GetEvaluationDataset(request);
GetEvaluationDataset(string, CallSettings)
public virtual EvaluationDataset GetEvaluationDataset(string name, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
EvaluationDataset response = evaluationServiceClient.GetEvaluationDataset(name);
GetEvaluationDatasetAsync(EvaluationDatasetName, CallSettings)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(EvaluationDatasetName name, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(name);
GetEvaluationDatasetAsync(EvaluationDatasetName, CancellationToken)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(EvaluationDatasetName name, CancellationToken cancellationToken)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationDatasetNameRequired. The resource name of the evaluation dataset to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDatasetName name = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]");
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(name);
GetEvaluationDatasetAsync(GetEvaluationDatasetRequest, CallSettings)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(GetEvaluationDatasetRequest request, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationDatasetRequest request = new GetEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(request);
GetEvaluationDatasetAsync(GetEvaluationDatasetRequest, CancellationToken)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(GetEvaluationDatasetRequest request, CancellationToken cancellationToken)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationDatasetRequest request = new GetEvaluationDatasetRequest
{
EvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(request);
GetEvaluationDatasetAsync(string, CallSettings)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(string name, CallSettings callSettings = null)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(name);
GetEvaluationDatasetAsync(string, CancellationToken)
public virtual Task<EvaluationDataset> GetEvaluationDatasetAsync(string name, CancellationToken cancellationToken)Gets details of the specified evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation dataset to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationDatasets/[EVALUATION_DATASET]";
// Make the request
EvaluationDataset response = await evaluationServiceClient.GetEvaluationDatasetAsync(name);
GetEvaluationExpectation(EvaluationExpectationName, CallSettings)
public virtual EvaluationExpectation GetEvaluationExpectation(EvaluationExpectationName name, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
EvaluationExpectation response = evaluationServiceClient.GetEvaluationExpectation(name);
GetEvaluationExpectation(GetEvaluationExpectationRequest, CallSettings)
public virtual EvaluationExpectation GetEvaluationExpectation(GetEvaluationExpectationRequest request, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetEvaluationExpectationRequest request = new GetEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
};
// Make the request
EvaluationExpectation response = evaluationServiceClient.GetEvaluationExpectation(request);
GetEvaluationExpectation(string, CallSettings)
public virtual EvaluationExpectation GetEvaluationExpectation(string name, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
EvaluationExpectation response = evaluationServiceClient.GetEvaluationExpectation(name);
GetEvaluationExpectationAsync(EvaluationExpectationName, CallSettings)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(EvaluationExpectationName name, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(name);
GetEvaluationExpectationAsync(EvaluationExpectationName, CancellationToken)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(EvaluationExpectationName name, CancellationToken cancellationToken)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationExpectationNameRequired. The resource name of the evaluation expectation to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectationName name = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]");
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(name);
GetEvaluationExpectationAsync(GetEvaluationExpectationRequest, CallSettings)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(GetEvaluationExpectationRequest request, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationExpectationRequest request = new GetEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(request);
GetEvaluationExpectationAsync(GetEvaluationExpectationRequest, CancellationToken)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(GetEvaluationExpectationRequest request, CancellationToken cancellationToken)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationExpectationRequest request = new GetEvaluationExpectationRequest
{
EvaluationExpectationName = EvaluationExpectationName.FromProjectLocationAppEvaluationExpectation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_EXPECTATION]"),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(request);
GetEvaluationExpectationAsync(string, CallSettings)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(string name, CallSettings callSettings = null)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(name);
GetEvaluationExpectationAsync(string, CancellationToken)
public virtual Task<EvaluationExpectation> GetEvaluationExpectationAsync(string name, CancellationToken cancellationToken)Gets details of the specified evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation expectation to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationExpectations/[EVALUATION_EXPECTATION]";
// Make the request
EvaluationExpectation response = await evaluationServiceClient.GetEvaluationExpectationAsync(name);
GetEvaluationResult(EvaluationResultName, CallSettings)
public virtual EvaluationResult GetEvaluationResult(EvaluationResultName name, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationResult |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
EvaluationResult response = evaluationServiceClient.GetEvaluationResult(name);
GetEvaluationResult(GetEvaluationResultRequest, CallSettings)
public virtual EvaluationResult GetEvaluationResult(GetEvaluationResultRequest request, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationResult |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetEvaluationResultRequest request = new GetEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
EvaluationResult response = evaluationServiceClient.GetEvaluationResult(request);
GetEvaluationResult(string, CallSettings)
public virtual EvaluationResult GetEvaluationResult(string name, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationResult |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
EvaluationResult response = evaluationServiceClient.GetEvaluationResult(name);
GetEvaluationResultAsync(EvaluationResultName, CallSettings)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(EvaluationResultName name, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(name);
GetEvaluationResultAsync(EvaluationResultName, CancellationToken)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(EvaluationResultName name, CancellationToken cancellationToken)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationResultNameRequired. The resource name of the evaluation result to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationResultName name = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]");
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(name);
GetEvaluationResultAsync(GetEvaluationResultRequest, CallSettings)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(GetEvaluationResultRequest request, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationResultRequest request = new GetEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(request);
GetEvaluationResultAsync(GetEvaluationResultRequest, CancellationToken)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(GetEvaluationResultRequest request, CancellationToken cancellationToken)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationResultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationResultRequest request = new GetEvaluationResultRequest
{
EvaluationResultName = EvaluationResultName.FromProjectLocationAppEvaluationEvaluationResult("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]", "[EVALUATION_RESULT]"),
};
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(request);
GetEvaluationResultAsync(string, CallSettings)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(string name, CallSettings callSettings = null)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(name);
GetEvaluationResultAsync(string, CancellationToken)
public virtual Task<EvaluationResult> GetEvaluationResultAsync(string name, CancellationToken cancellationToken)Gets details of the specified evaluation result.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation result to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationResult |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]/results/[EVALUATION_RESULT]";
// Make the request
EvaluationResult response = await evaluationServiceClient.GetEvaluationResultAsync(name);
GetEvaluationRun(EvaluationRunName, CallSettings)
public virtual EvaluationRun GetEvaluationRun(EvaluationRunName name, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
EvaluationRun response = evaluationServiceClient.GetEvaluationRun(name);
GetEvaluationRun(GetEvaluationRunRequest, CallSettings)
public virtual EvaluationRun GetEvaluationRun(GetEvaluationRunRequest request, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetEvaluationRunRequest request = new GetEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
EvaluationRun response = evaluationServiceClient.GetEvaluationRun(request);
GetEvaluationRun(string, CallSettings)
public virtual EvaluationRun GetEvaluationRun(string name, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
EvaluationRun response = evaluationServiceClient.GetEvaluationRun(name);
GetEvaluationRunAsync(EvaluationRunName, CallSettings)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(EvaluationRunName name, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(name);
GetEvaluationRunAsync(EvaluationRunName, CancellationToken)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(EvaluationRunName name, CancellationToken cancellationToken)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
EvaluationRunNameRequired. The resource name of the evaluation run to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationRunName name = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]");
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(name);
GetEvaluationRunAsync(GetEvaluationRunRequest, CallSettings)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(GetEvaluationRunRequest request, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationRunRequest request = new GetEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(request);
GetEvaluationRunAsync(GetEvaluationRunRequest, CancellationToken)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(GetEvaluationRunRequest request, CancellationToken cancellationToken)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEvaluationRunRequest request = new GetEvaluationRunRequest
{
EvaluationRunName = EvaluationRunName.FromProjectLocationAppEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_RUN]"),
};
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(request);
GetEvaluationRunAsync(string, CallSettings)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(string name, CallSettings callSettings = null)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(name);
GetEvaluationRunAsync(string, CancellationToken)
public virtual Task<EvaluationRun> GetEvaluationRunAsync(string name, CancellationToken cancellationToken)Gets details of the specified evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the evaluation run to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluationRuns/[EVALUATION_RUN]";
// Make the request
EvaluationRun response = await evaluationServiceClient.GetEvaluationRunAsync(name);
GetScheduledEvaluationRun(GetScheduledEvaluationRunRequest, CallSettings)
public virtual ScheduledEvaluationRun GetScheduledEvaluationRun(GetScheduledEvaluationRunRequest request, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
GetScheduledEvaluationRunRequest request = new GetScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
};
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.GetScheduledEvaluationRun(request);
GetScheduledEvaluationRun(ScheduledEvaluationRunName, CallSettings)
public virtual ScheduledEvaluationRun GetScheduledEvaluationRun(ScheduledEvaluationRunName name, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.GetScheduledEvaluationRun(name);
GetScheduledEvaluationRun(string, CallSettings)
public virtual ScheduledEvaluationRun GetScheduledEvaluationRun(string name, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.GetScheduledEvaluationRun(name);
GetScheduledEvaluationRunAsync(GetScheduledEvaluationRunRequest, CallSettings)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(GetScheduledEvaluationRunRequest request, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetScheduledEvaluationRunRequest request = new GetScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(request);
GetScheduledEvaluationRunAsync(GetScheduledEvaluationRunRequest, CancellationToken)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(GetScheduledEvaluationRunRequest request, CancellationToken cancellationToken)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
GetScheduledEvaluationRunRequest request = new GetScheduledEvaluationRunRequest
{
ScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(request);
GetScheduledEvaluationRunAsync(ScheduledEvaluationRunName, CallSettings)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(ScheduledEvaluationRunName name, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(name);
GetScheduledEvaluationRunAsync(ScheduledEvaluationRunName, CancellationToken)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(ScheduledEvaluationRunName name, CancellationToken cancellationToken)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
ScheduledEvaluationRunNameRequired. The resource name of the scheduled evaluation run to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRunName name = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]");
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(name);
GetScheduledEvaluationRunAsync(string, CallSettings)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(string name, CallSettings callSettings = null)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(name);
GetScheduledEvaluationRunAsync(string, CancellationToken)
public virtual Task<ScheduledEvaluationRun> GetScheduledEvaluationRunAsync(string name, CancellationToken cancellationToken)Gets details of the specified scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the scheduled evaluation run to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/scheduledEvaluationRuns/[SCHEDULED_EVALUATION_RUN]";
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.GetScheduledEvaluationRunAsync(name);
ImportEvaluations(AppName, CallSettings)
public virtual Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> ImportEvaluations(AppName parent, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to import the evaluations into.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = evaluationServiceClient.ImportEvaluations(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceImportEvaluations(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluations(ImportEvaluationsRequest, CallSettings)
public virtual Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> ImportEvaluations(ImportEvaluationsRequest request, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ImportEvaluationsRequest request = new ImportEvaluationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ConversationList = new ImportEvaluationsRequest.Types.ConversationList(),
ImportOptions = new ImportEvaluationsRequest.Types.ImportOptions(),
};
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = evaluationServiceClient.ImportEvaluations(request);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceImportEvaluations(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluations(string, CallSettings)
public virtual Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> ImportEvaluations(string parent, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to import the evaluations into.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = evaluationServiceClient.ImportEvaluations(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceImportEvaluations(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(AppName, CallSettings)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(AppName parent, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to import the evaluations into.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(AppName, CancellationToken)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(AppName parent, CancellationToken cancellationToken)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The app to import the evaluations into.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(ImportEvaluationsRequest, CallSettings)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(ImportEvaluationsRequest request, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ImportEvaluationsRequest request = new ImportEvaluationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ConversationList = new ImportEvaluationsRequest.Types.ConversationList(),
ImportOptions = new ImportEvaluationsRequest.Types.ImportOptions(),
};
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(request);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(ImportEvaluationsRequest, CancellationToken)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(ImportEvaluationsRequest request, CancellationToken cancellationToken)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportEvaluationsRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ImportEvaluationsRequest request = new ImportEvaluationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
ConversationList = new ImportEvaluationsRequest.Types.ConversationList(),
ImportOptions = new ImportEvaluationsRequest.Types.ImportOptions(),
};
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(request);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(string, CallSettings)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(string parent, CallSettings callSettings = null)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to import the evaluations into.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ImportEvaluationsAsync(string, CancellationToken)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> ImportEvaluationsAsync(string parent, CancellationToken cancellationToken)Imports evaluations into the app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The app to import the evaluations into.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> response = await evaluationServiceClient.ImportEvaluationsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportEvaluationsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceImportEvaluationsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ImportEvaluationsResponse retrievedResult = retrievedResponse.Result;
}
ListEvaluationDatasets(AppName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasets(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation datasets from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationDatasets(ListEvaluationDatasetsRequest, CallSettings)
public virtual PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasets(ListEvaluationDatasetsRequest request, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationDatasetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListEvaluationDatasetsRequest request = new ListEvaluationDatasetsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationDatasets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation datasets from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationDatasetsAsync(AppName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasetsAsync(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation datasets from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable asynchronous sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationDatasetsAsync(ListEvaluationDatasetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasetsAsync(ListEvaluationDatasetsRequest request, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationDatasetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable asynchronous sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEvaluationDatasetsRequest request = new ListEvaluationDatasetsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationDatasetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> ListEvaluationDatasetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation datasets in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation datasets from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationDatasetsResponseEvaluationDataset |
A pageable asynchronous sequence of EvaluationDataset resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedAsyncEnumerable<ListEvaluationDatasetsResponse, EvaluationDataset> response = evaluationServiceClient.ListEvaluationDatasetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationDataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationDataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationDataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationDataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectations(AppName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectations(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation expectations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectations(ListEvaluationExpectationsRequest, CallSettings)
public virtual PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectations(ListEvaluationExpectationsRequest request, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationExpectationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListEvaluationExpectationsRequest request = new ListEvaluationExpectationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectations(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectations(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation expectations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectationsAsync(AppName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectationsAsync(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation expectations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable asynchronous sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectationsAsync(ListEvaluationExpectationsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectationsAsync(ListEvaluationExpectationsRequest request, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationExpectationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable asynchronous sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEvaluationExpectationsRequest request = new ListEvaluationExpectationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectationsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationExpectationsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> ListEvaluationExpectationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation expectations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation expectations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationExpectationsResponseEvaluationExpectation |
A pageable asynchronous sequence of EvaluationExpectation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedAsyncEnumerable<ListEvaluationExpectationsResponse, EvaluationExpectation> response = evaluationServiceClient.ListEvaluationExpectationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationExpectation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationExpectationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationExpectation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationExpectation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationExpectation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResults(EvaluationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResults(EvaluationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
EvaluationNameRequired. The resource name of the evaluation to list evaluation results
from. To filter by evaluation run, use |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationName parent = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResults(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResults(ListEvaluationResultsRequest, CallSettings)
public virtual PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResults(ListEvaluationResultsRequest request, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListEvaluationResultsRequest request = new ListEvaluationResultsRequest
{
ParentAsEvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResults(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResults(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResults(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the evaluation to list evaluation results
from. To filter by evaluation run, use |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
PagedEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResults(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResultsAsync(EvaluationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResultsAsync(EvaluationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
EvaluationNameRequired. The resource name of the evaluation to list evaluation results
from. To filter by evaluation run, use |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable asynchronous sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationName parent = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]");
// Make the request
PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResultsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResultsAsync(ListEvaluationResultsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResultsAsync(ListEvaluationResultsRequest request, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable asynchronous sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEvaluationResultsRequest request = new ListEvaluationResultsRequest
{
ParentAsEvaluationName = EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResultsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationResultsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> ListEvaluationResultsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation results for a given evaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the evaluation to list evaluation results
from. To filter by evaluation run, use |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationResultsResponseEvaluationResult |
A pageable asynchronous sequence of EvaluationResult resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]/evaluations/[EVALUATION]";
// Make the request
PagedAsyncEnumerable<ListEvaluationResultsResponse, EvaluationResult> response = evaluationServiceClient.ListEvaluationResultsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationResultsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRuns(AppName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRuns(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRuns(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRuns(ListEvaluationRunsRequest, CallSettings)
public virtual PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRuns(ListEvaluationRunsRequest request, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationRunsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListEvaluationRunsRequest request = new ListEvaluationRunsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRuns(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRuns(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRuns(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRuns(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRunsAsync(AppName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRunsAsync(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable asynchronous sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRunsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRunsAsync(ListEvaluationRunsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRunsAsync(ListEvaluationRunsRequest request, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationRunsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable asynchronous sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEvaluationRunsRequest request = new ListEvaluationRunsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRunsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationRunsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> ListEvaluationRunsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationRunsResponseEvaluationRun |
A pageable asynchronous sequence of EvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedAsyncEnumerable<ListEvaluationRunsResponse, EvaluationRun> response = evaluationServiceClient.ListEvaluationRunsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (EvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<EvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (EvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluations(AppName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluations(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationsResponseEvaluation |
A pageable sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluations(ListEvaluationsRequest, CallSettings)
public virtual PagedEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluations(ListEvaluationsRequest request, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationsResponseEvaluation |
A pageable sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListEvaluationsRequest request = new ListEvaluationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
OrderBy = "",
LastTenResults = false,
EvaluationFilter = "",
EvaluationRunFilter = "",
};
// Make the request
PagedEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluations(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluations(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListEvaluationsResponseEvaluation |
A pageable sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationsAsync(AppName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluationsAsync(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list evaluations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationsResponseEvaluation |
A pageable asynchronous sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationsAsync(ListEvaluationsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluationsAsync(ListEvaluationsRequest request, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEvaluationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationsResponseEvaluation |
A pageable asynchronous sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEvaluationsRequest request = new ListEvaluationsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
OrderBy = "",
LastTenResults = false,
EvaluationFilter = "",
EvaluationRunFilter = "",
};
// Make the request
PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluationsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListEvaluationsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> ListEvaluationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all evaluations in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list evaluations from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListEvaluationsResponseEvaluation |
A pageable asynchronous sequence of Evaluation resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedAsyncEnumerable<ListEvaluationsResponse, Evaluation> response = evaluationServiceClient.ListEvaluationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Evaluation item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListEvaluationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Evaluation item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Evaluation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Evaluation item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRuns(AppName, string, int?, CallSettings)
public virtual PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRuns(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list scheduled evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRuns(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRuns(ListScheduledEvaluationRunsRequest, CallSettings)
public virtual PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRuns(ListScheduledEvaluationRunsRequest request, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScheduledEvaluationRunsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ListScheduledEvaluationRunsRequest request = new ListScheduledEvaluationRunsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRuns(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRuns(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRuns(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list scheduled evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRuns(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRunsAsync(AppName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRunsAsync(AppName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
AppNameRequired. The resource name of the app to list scheduled evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable asynchronous sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName parent = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRunsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRunsAsync(ListScheduledEvaluationRunsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRunsAsync(ListScheduledEvaluationRunsRequest request, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScheduledEvaluationRunsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable asynchronous sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ListScheduledEvaluationRunsRequest request = new ListScheduledEvaluationRunsRequest
{
ParentAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRunsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListScheduledEvaluationRunsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> ListScheduledEvaluationRunsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all scheduled evaluation runs in the given app.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the app to list scheduled evaluation runs from. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScheduledEvaluationRunsResponseScheduledEvaluationRun |
A pageable asynchronous sequence of ScheduledEvaluationRun resources. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
PagedAsyncEnumerable<ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> response = evaluationServiceClient.ListScheduledEvaluationRunsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (ScheduledEvaluationRun item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScheduledEvaluationRunsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ScheduledEvaluationRun item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ScheduledEvaluationRun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ScheduledEvaluationRun item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceDeleteEvaluationRun(string, CallSettings)
public virtual Operation<Empty, DeleteEvaluationRunOperationMetadata> PollOnceDeleteEvaluationRun(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteEvaluationRun
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteEvaluationRunOperationMetadata |
The result of polling the operation. |
PollOnceDeleteEvaluationRunAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteEvaluationRunOperationMetadata>> PollOnceDeleteEvaluationRunAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteEvaluationRun.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteEvaluationRunOperationMetadata |
A task representing the result of polling the operation. |
PollOnceGenerateEvaluation(string, CallSettings)
public virtual Operation<Evaluation, GenerateEvaluationOperationMetadata> PollOnceGenerateEvaluation(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of GenerateEvaluation
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEvaluationGenerateEvaluationOperationMetadata |
The result of polling the operation. |
PollOnceGenerateEvaluationAsync(string, CallSettings)
public virtual Task<Operation<Evaluation, GenerateEvaluationOperationMetadata>> PollOnceGenerateEvaluationAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
GenerateEvaluation.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEvaluationGenerateEvaluationOperationMetadata |
A task representing the result of polling the operation. |
PollOnceImportEvaluations(string, CallSettings)
public virtual Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata> PollOnceImportEvaluations(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of ImportEvaluations
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
The result of polling the operation. |
PollOnceImportEvaluationsAsync(string, CallSettings)
public virtual Task<Operation<ImportEvaluationsResponse, ImportEvaluationsOperationMetadata>> PollOnceImportEvaluationsAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
ImportEvaluations.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportEvaluationsResponseImportEvaluationsOperationMetadata |
A task representing the result of polling the operation. |
PollOnceRunEvaluation(string, CallSettings)
public virtual Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> PollOnceRunEvaluation(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of RunEvaluation.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRunEvaluationResponseRunEvaluationOperationMetadata |
The result of polling the operation. |
PollOnceRunEvaluationAsync(string, CallSettings)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> PollOnceRunEvaluationAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
RunEvaluation.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A task representing the result of polling the operation. |
RunEvaluation(AppName, CallSettings)
public virtual Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> RunEvaluation(AppName app, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The app to evaluate.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRunEvaluationResponseRunEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = evaluationServiceClient.RunEvaluation(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceRunEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluation(RunEvaluationRequest, CallSettings)
public virtual Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> RunEvaluation(RunEvaluationRequest request, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
request |
RunEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRunEvaluationResponseRunEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
RunEvaluationRequest request = new RunEvaluationRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationsAsEvaluationNames =
{
EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
},
EvaluationDatasetAsEvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
DisplayName = "",
AppVersionAsAppVersionName = AppVersionName.FromProjectLocationAppVersion("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"),
Config = new EvaluationConfig(),
RunCount = 0,
PersonaRunConfigs =
{
new PersonaRunConfig(),
},
OptimizationConfig = new OptimizationConfig(),
ScheduledEvaluationRunAsScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
GoldenRunMethod = GoldenRunMethod.Unspecified,
GenerateLatencyReport = false,
};
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = evaluationServiceClient.RunEvaluation(request);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceRunEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluation(string, CallSettings)
public virtual Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> RunEvaluation(string app, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The app to evaluate.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRunEvaluationResponseRunEvaluationOperationMetadata |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = evaluationServiceClient.RunEvaluation(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = evaluationServiceClient.PollOnceRunEvaluation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(AppName, CallSettings)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(AppName app, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The app to evaluate.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(AppName, CancellationToken)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(AppName app, CancellationToken cancellationToken)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The app to evaluate.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(RunEvaluationRequest, CallSettings)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(RunEvaluationRequest request, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
request |
RunEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
RunEvaluationRequest request = new RunEvaluationRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationsAsEvaluationNames =
{
EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
},
EvaluationDatasetAsEvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
DisplayName = "",
AppVersionAsAppVersionName = AppVersionName.FromProjectLocationAppVersion("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"),
Config = new EvaluationConfig(),
RunCount = 0,
PersonaRunConfigs =
{
new PersonaRunConfig(),
},
OptimizationConfig = new OptimizationConfig(),
ScheduledEvaluationRunAsScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
GoldenRunMethod = GoldenRunMethod.Unspecified,
GenerateLatencyReport = false,
};
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(request);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(RunEvaluationRequest, CancellationToken)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(RunEvaluationRequest request, CancellationToken cancellationToken)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
request |
RunEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
RunEvaluationRequest request = new RunEvaluationRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
EvaluationsAsEvaluationNames =
{
EvaluationName.FromProjectLocationAppEvaluation("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION]"),
},
EvaluationDatasetAsEvaluationDatasetName = EvaluationDatasetName.FromProjectLocationAppEvaluationDataset("[PROJECT]", "[LOCATION]", "[APP]", "[EVALUATION_DATASET]"),
DisplayName = "",
AppVersionAsAppVersionName = AppVersionName.FromProjectLocationAppVersion("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"),
Config = new EvaluationConfig(),
RunCount = 0,
PersonaRunConfigs =
{
new PersonaRunConfig(),
},
OptimizationConfig = new OptimizationConfig(),
ScheduledEvaluationRunAsScheduledEvaluationRunName = ScheduledEvaluationRunName.FromProjectLocationAppScheduledEvaluationRun("[PROJECT]", "[LOCATION]", "[APP]", "[SCHEDULED_EVALUATION_RUN]"),
GoldenRunMethod = GoldenRunMethod.Unspecified,
GenerateLatencyReport = false,
};
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(request);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(string, CallSettings)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(string app, CallSettings callSettings = null)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The app to evaluate.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
RunEvaluationAsync(string, CancellationToken)
public virtual Task<Operation<RunEvaluationResponse, RunEvaluationOperationMetadata>> RunEvaluationAsync(string app, CancellationToken cancellationToken)Runs an evaluation of the app.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The app to evaluate.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunEvaluationResponseRunEvaluationOperationMetadata |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> response = await evaluationServiceClient.RunEvaluationAsync(app);
// Poll until the returned long-running operation is complete
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunEvaluationResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RunEvaluationResponse, RunEvaluationOperationMetadata> retrievedResponse = await evaluationServiceClient.PollOnceRunEvaluationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunEvaluationResponse retrievedResult = retrievedResponse.Result;
}
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.
TestPersonaVoice(AppName, CallSettings)
public virtual TestPersonaVoiceResponse TestPersonaVoice(AppName app, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. the resource name of the app to test the persona voice for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPersonaVoiceResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
TestPersonaVoiceResponse response = evaluationServiceClient.TestPersonaVoice(app);
TestPersonaVoice(TestPersonaVoiceRequest, CallSettings)
public virtual TestPersonaVoiceResponse TestPersonaVoice(TestPersonaVoiceRequest request, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
request |
TestPersonaVoiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPersonaVoiceResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
TestPersonaVoiceRequest request = new TestPersonaVoiceRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
PersonaId = "",
Text = "",
};
// Make the request
TestPersonaVoiceResponse response = evaluationServiceClient.TestPersonaVoice(request);
TestPersonaVoice(string, CallSettings)
public virtual TestPersonaVoiceResponse TestPersonaVoice(string app, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. the resource name of the app to test the persona voice for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPersonaVoiceResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
TestPersonaVoiceResponse response = evaluationServiceClient.TestPersonaVoice(app);
TestPersonaVoiceAsync(AppName, CallSettings)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(AppName app, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. the resource name of the app to test the persona voice for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(app);
TestPersonaVoiceAsync(AppName, CancellationToken)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(AppName app, CancellationToken cancellationToken)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. the resource name of the app to test the persona voice for.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(app);
TestPersonaVoiceAsync(TestPersonaVoiceRequest, CallSettings)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(TestPersonaVoiceRequest request, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
request |
TestPersonaVoiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
TestPersonaVoiceRequest request = new TestPersonaVoiceRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
PersonaId = "",
Text = "",
};
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(request);
TestPersonaVoiceAsync(TestPersonaVoiceRequest, CancellationToken)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(TestPersonaVoiceRequest request, CancellationToken cancellationToken)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
request |
TestPersonaVoiceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
TestPersonaVoiceRequest request = new TestPersonaVoiceRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
PersonaId = "",
Text = "",
};
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(request);
TestPersonaVoiceAsync(string, CallSettings)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(string app, CallSettings callSettings = null)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. the resource name of the app to test the persona voice for.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(app);
TestPersonaVoiceAsync(string, CancellationToken)
public virtual Task<TestPersonaVoiceResponse> TestPersonaVoiceAsync(string app, CancellationToken cancellationToken)Tests the voice of a persona. Also accepts a default persona.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. the resource name of the app to test the persona voice for.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPersonaVoiceResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
// Make the request
TestPersonaVoiceResponse response = await evaluationServiceClient.TestPersonaVoiceAsync(app);
UpdateEvaluation(Evaluation, FieldMask, CallSettings)
public virtual Evaluation UpdateEvaluation(Evaluation evaluation, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
evaluation |
EvaluationRequired. The evaluation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
Evaluation evaluation = new Evaluation();
FieldMask updateMask = new FieldMask();
// Make the request
Evaluation response = evaluationServiceClient.UpdateEvaluation(evaluation, updateMask);
UpdateEvaluation(UpdateEvaluationRequest, CallSettings)
public virtual Evaluation UpdateEvaluation(UpdateEvaluationRequest request, CallSettings callSettings = null)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Evaluation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
UpdateEvaluationRequest request = new UpdateEvaluationRequest
{
Evaluation = new Evaluation(),
UpdateMask = new FieldMask(),
};
// Make the request
Evaluation response = evaluationServiceClient.UpdateEvaluation(request);
UpdateEvaluationAsync(Evaluation, FieldMask, CallSettings)
public virtual Task<Evaluation> UpdateEvaluationAsync(Evaluation evaluation, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
evaluation |
EvaluationRequired. The evaluation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
Evaluation evaluation = new Evaluation();
FieldMask updateMask = new FieldMask();
// Make the request
Evaluation response = await evaluationServiceClient.UpdateEvaluationAsync(evaluation, updateMask);
UpdateEvaluationAsync(Evaluation, FieldMask, CancellationToken)
public virtual Task<Evaluation> UpdateEvaluationAsync(Evaluation evaluation, FieldMask updateMask, CancellationToken cancellationToken)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
evaluation |
EvaluationRequired. The evaluation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
Evaluation evaluation = new Evaluation();
FieldMask updateMask = new FieldMask();
// Make the request
Evaluation response = await evaluationServiceClient.UpdateEvaluationAsync(evaluation, updateMask);
UpdateEvaluationAsync(UpdateEvaluationRequest, CallSettings)
public virtual Task<Evaluation> UpdateEvaluationAsync(UpdateEvaluationRequest request, CallSettings callSettings = null)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationRequest request = new UpdateEvaluationRequest
{
Evaluation = new Evaluation(),
UpdateMask = new FieldMask(),
};
// Make the request
Evaluation response = await evaluationServiceClient.UpdateEvaluationAsync(request);
UpdateEvaluationAsync(UpdateEvaluationRequest, CancellationToken)
public virtual Task<Evaluation> UpdateEvaluationAsync(UpdateEvaluationRequest request, CancellationToken cancellationToken)Updates an evaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationRequest request = new UpdateEvaluationRequest
{
Evaluation = new Evaluation(),
UpdateMask = new FieldMask(),
};
// Make the request
Evaluation response = await evaluationServiceClient.UpdateEvaluationAsync(request);
UpdateEvaluationDataset(EvaluationDataset, FieldMask, CallSettings)
public virtual EvaluationDataset UpdateEvaluationDataset(EvaluationDataset evaluationDataset, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationDataset evaluationDataset = new EvaluationDataset();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationDataset response = evaluationServiceClient.UpdateEvaluationDataset(evaluationDataset, updateMask);
UpdateEvaluationDataset(UpdateEvaluationDatasetRequest, CallSettings)
public virtual EvaluationDataset UpdateEvaluationDataset(UpdateEvaluationDatasetRequest request, CallSettings callSettings = null)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationDataset |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
UpdateEvaluationDatasetRequest request = new UpdateEvaluationDatasetRequest
{
EvaluationDataset = new EvaluationDataset(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationDataset response = evaluationServiceClient.UpdateEvaluationDataset(request);
UpdateEvaluationDatasetAsync(EvaluationDataset, FieldMask, CallSettings)
public virtual Task<EvaluationDataset> UpdateEvaluationDatasetAsync(EvaluationDataset evaluationDataset, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDataset evaluationDataset = new EvaluationDataset();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationDataset response = await evaluationServiceClient.UpdateEvaluationDatasetAsync(evaluationDataset, updateMask);
UpdateEvaluationDatasetAsync(EvaluationDataset, FieldMask, CancellationToken)
public virtual Task<EvaluationDataset> UpdateEvaluationDatasetAsync(EvaluationDataset evaluationDataset, FieldMask updateMask, CancellationToken cancellationToken)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
evaluationDataset |
EvaluationDatasetRequired. The evaluation dataset to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationDataset evaluationDataset = new EvaluationDataset();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationDataset response = await evaluationServiceClient.UpdateEvaluationDatasetAsync(evaluationDataset, updateMask);
UpdateEvaluationDatasetAsync(UpdateEvaluationDatasetRequest, CallSettings)
public virtual Task<EvaluationDataset> UpdateEvaluationDatasetAsync(UpdateEvaluationDatasetRequest request, CallSettings callSettings = null)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationDatasetRequest request = new UpdateEvaluationDatasetRequest
{
EvaluationDataset = new EvaluationDataset(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.UpdateEvaluationDatasetAsync(request);
UpdateEvaluationDatasetAsync(UpdateEvaluationDatasetRequest, CancellationToken)
public virtual Task<EvaluationDataset> UpdateEvaluationDatasetAsync(UpdateEvaluationDatasetRequest request, CancellationToken cancellationToken)Updates an evaluation dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationDatasetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationDataset |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationDatasetRequest request = new UpdateEvaluationDatasetRequest
{
EvaluationDataset = new EvaluationDataset(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationDataset response = await evaluationServiceClient.UpdateEvaluationDatasetAsync(request);
UpdateEvaluationExpectation(EvaluationExpectation, FieldMask, CallSettings)
public virtual EvaluationExpectation UpdateEvaluationExpectation(EvaluationExpectation evaluationExpectation, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationExpectation response = evaluationServiceClient.UpdateEvaluationExpectation(evaluationExpectation, updateMask);
UpdateEvaluationExpectation(UpdateEvaluationExpectationRequest, CallSettings)
public virtual EvaluationExpectation UpdateEvaluationExpectation(UpdateEvaluationExpectationRequest request, CallSettings callSettings = null)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
EvaluationExpectation |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
UpdateEvaluationExpectationRequest request = new UpdateEvaluationExpectationRequest
{
EvaluationExpectation = new EvaluationExpectation(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationExpectation response = evaluationServiceClient.UpdateEvaluationExpectation(request);
UpdateEvaluationExpectationAsync(EvaluationExpectation, FieldMask, CallSettings)
public virtual Task<EvaluationExpectation> UpdateEvaluationExpectationAsync(EvaluationExpectation evaluationExpectation, FieldMask updateMask, CallSettings callSettings = null)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.UpdateEvaluationExpectationAsync(evaluationExpectation, updateMask);
UpdateEvaluationExpectationAsync(EvaluationExpectation, FieldMask, CancellationToken)
public virtual Task<EvaluationExpectation> UpdateEvaluationExpectationAsync(EvaluationExpectation evaluationExpectation, FieldMask updateMask, CancellationToken cancellationToken)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
evaluationExpectation |
EvaluationExpectationRequired. The evaluation expectation to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
EvaluationExpectation evaluationExpectation = new EvaluationExpectation();
FieldMask updateMask = new FieldMask();
// Make the request
EvaluationExpectation response = await evaluationServiceClient.UpdateEvaluationExpectationAsync(evaluationExpectation, updateMask);
UpdateEvaluationExpectationAsync(UpdateEvaluationExpectationRequest, CallSettings)
public virtual Task<EvaluationExpectation> UpdateEvaluationExpectationAsync(UpdateEvaluationExpectationRequest request, CallSettings callSettings = null)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationExpectationRequest request = new UpdateEvaluationExpectationRequest
{
EvaluationExpectation = new EvaluationExpectation(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.UpdateEvaluationExpectationAsync(request);
UpdateEvaluationExpectationAsync(UpdateEvaluationExpectationRequest, CancellationToken)
public virtual Task<EvaluationExpectation> UpdateEvaluationExpectationAsync(UpdateEvaluationExpectationRequest request, CancellationToken cancellationToken)Updates an evaluation expectation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEvaluationExpectationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskEvaluationExpectation |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEvaluationExpectationRequest request = new UpdateEvaluationExpectationRequest
{
EvaluationExpectation = new EvaluationExpectation(),
UpdateMask = new FieldMask(),
};
// Make the request
EvaluationExpectation response = await evaluationServiceClient.UpdateEvaluationExpectationAsync(request);
UpdateScheduledEvaluationRun(ScheduledEvaluationRun, FieldMask, CallSettings)
public virtual ScheduledEvaluationRun UpdateScheduledEvaluationRun(ScheduledEvaluationRun scheduledEvaluationRun, FieldMask updateMask, CallSettings callSettings = null)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
FieldMask updateMask = new FieldMask();
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.UpdateScheduledEvaluationRun(scheduledEvaluationRun, updateMask);
UpdateScheduledEvaluationRun(UpdateScheduledEvaluationRunRequest, CallSettings)
public virtual ScheduledEvaluationRun UpdateScheduledEvaluationRun(UpdateScheduledEvaluationRunRequest request, CallSettings callSettings = null)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ScheduledEvaluationRun |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
UpdateScheduledEvaluationRunRequest request = new UpdateScheduledEvaluationRunRequest
{
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
UpdateMask = new FieldMask(),
};
// Make the request
ScheduledEvaluationRun response = evaluationServiceClient.UpdateScheduledEvaluationRun(request);
UpdateScheduledEvaluationRunAsync(ScheduledEvaluationRun, FieldMask, CallSettings)
public virtual Task<ScheduledEvaluationRun> UpdateScheduledEvaluationRunAsync(ScheduledEvaluationRun scheduledEvaluationRun, FieldMask updateMask, CallSettings callSettings = null)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
FieldMask updateMask = new FieldMask();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.UpdateScheduledEvaluationRunAsync(scheduledEvaluationRun, updateMask);
UpdateScheduledEvaluationRunAsync(ScheduledEvaluationRun, FieldMask, CancellationToken)
public virtual Task<ScheduledEvaluationRun> UpdateScheduledEvaluationRunAsync(ScheduledEvaluationRun scheduledEvaluationRun, FieldMask updateMask, CancellationToken cancellationToken)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
scheduledEvaluationRun |
ScheduledEvaluationRunRequired. The scheduled evaluation run to update. |
updateMask |
FieldMaskOptional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduledEvaluationRun scheduledEvaluationRun = new ScheduledEvaluationRun();
FieldMask updateMask = new FieldMask();
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.UpdateScheduledEvaluationRunAsync(scheduledEvaluationRun, updateMask);
UpdateScheduledEvaluationRunAsync(UpdateScheduledEvaluationRunRequest, CallSettings)
public virtual Task<ScheduledEvaluationRun> UpdateScheduledEvaluationRunAsync(UpdateScheduledEvaluationRunRequest request, CallSettings callSettings = null)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateScheduledEvaluationRunRequest request = new UpdateScheduledEvaluationRunRequest
{
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
UpdateMask = new FieldMask(),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.UpdateScheduledEvaluationRunAsync(request);
UpdateScheduledEvaluationRunAsync(UpdateScheduledEvaluationRunRequest, CancellationToken)
public virtual Task<ScheduledEvaluationRun> UpdateScheduledEvaluationRunAsync(UpdateScheduledEvaluationRunRequest request, CancellationToken cancellationToken)Updates a scheduled evaluation run.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScheduledEvaluationRunRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScheduledEvaluationRun |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateScheduledEvaluationRunRequest request = new UpdateScheduledEvaluationRunRequest
{
ScheduledEvaluationRun = new ScheduledEvaluationRun(),
UpdateMask = new FieldMask(),
};
// Make the request
ScheduledEvaluationRun response = await evaluationServiceClient.UpdateScheduledEvaluationRunAsync(request);
UploadEvaluationAudio(AppName, ByteString, CallSettings)
public virtual UploadEvaluationAudioResponse UploadEvaluationAudio(AppName app, ByteString audioContent, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UploadEvaluationAudioResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = evaluationServiceClient.UploadEvaluationAudio(app, audioContent);
UploadEvaluationAudio(UploadEvaluationAudioRequest, CallSettings)
public virtual UploadEvaluationAudioResponse UploadEvaluationAudio(UploadEvaluationAudioRequest request, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
request |
UploadEvaluationAudioRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UploadEvaluationAudioResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
UploadEvaluationAudioRequest request = new UploadEvaluationAudioRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
AudioContent = ByteString.Empty,
};
// Make the request
UploadEvaluationAudioResponse response = evaluationServiceClient.UploadEvaluationAudio(request);
UploadEvaluationAudio(string, ByteString, CallSettings)
public virtual UploadEvaluationAudioResponse UploadEvaluationAudio(string app, ByteString audioContent, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UploadEvaluationAudioResponse |
The RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = evaluationServiceClient.UploadEvaluationAudio(app, audioContent);
UploadEvaluationAudioAsync(AppName, ByteString, CallSettings)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(AppName app, ByteString audioContent, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(app, audioContent);
UploadEvaluationAudioAsync(AppName, ByteString, CancellationToken)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(AppName app, ByteString audioContent, CancellationToken cancellationToken)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
AppNameRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
AppName app = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]");
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(app, audioContent);
UploadEvaluationAudioAsync(UploadEvaluationAudioRequest, CallSettings)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(UploadEvaluationAudioRequest request, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
request |
UploadEvaluationAudioRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UploadEvaluationAudioRequest request = new UploadEvaluationAudioRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
AudioContent = ByteString.Empty,
};
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(request);
UploadEvaluationAudioAsync(UploadEvaluationAudioRequest, CancellationToken)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(UploadEvaluationAudioRequest request, CancellationToken cancellationToken)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
request |
UploadEvaluationAudioRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
UploadEvaluationAudioRequest request = new UploadEvaluationAudioRequest
{
AppAsAppName = AppName.FromProjectLocationApp("[PROJECT]", "[LOCATION]", "[APP]"),
AudioContent = ByteString.Empty,
};
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(request);
UploadEvaluationAudioAsync(string, ByteString, CallSettings)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(string app, ByteString audioContent, CallSettings callSettings = null)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(app, audioContent);
UploadEvaluationAudioAsync(string, ByteString, CancellationToken)
public virtual Task<UploadEvaluationAudioResponse> UploadEvaluationAudioAsync(string app, ByteString audioContent, CancellationToken cancellationToken)Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.
| Parameters | |
|---|---|
| Name | Description |
app |
stringRequired. The resource name of the App for which to upload the evaluation
audio. Format: |
audioContent |
ByteStringRequired. The raw audio bytes. The format of the audio must be single-channel LINEAR16 with a sample rate of 16kHz (default InputAudioConfig). |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadEvaluationAudioResponse |
A Task containing the RPC response. |
// Create client
EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
// Initialize request argument(s)
string app = "projects/[PROJECT]/locations/[LOCATION]/apps/[APP]";
ByteString audioContent = ByteString.Empty;
// Make the request
UploadEvaluationAudioResponse response = await evaluationServiceClient.UploadEvaluationAudioAsync(app, audioContent);