Retail v2 API - Class GenerativeQuestionServiceClient (2.12.0)

public abstract class GenerativeQuestionServiceClient

Reference documentation and code samples for the Retail v2 API class GenerativeQuestionServiceClient.

GenerativeQuestionService client wrapper, for convenient use.

Inheritance

object > GenerativeQuestionServiceClient

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Remarks

Service for managing LLM generated questions in search serving.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the GenerativeQuestionService service, which is a host of "retail.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default GenerativeQuestionService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default GenerativeQuestionService scopes are:

GrpcClient

public virtual GenerativeQuestionService.GenerativeQuestionServiceClient GrpcClient { get; }

The underlying gRPC GenerativeQuestionService client

Property Value
Type Description
GenerativeQuestionServiceGenerativeQuestionServiceClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest, CallSettings)

public virtual BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
request BatchUpdateGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
BatchUpdateGenerativeQuestionConfigsRequest request = new BatchUpdateGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
    Requests =
    {
        new UpdateGenerativeQuestionConfigRequest(),
    },
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigs(request);

BatchUpdateGenerativeQuestionConfigs(CatalogName, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CallSettings)

public virtual BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(CatalogName parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
parent CatalogName

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigs(parent, requests);

BatchUpdateGenerativeQuestionConfigs(string, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CallSettings)

public virtual BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(string parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
parent string

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigs(parent, requests);

BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest, CallSettings)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
request BatchUpdateGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateGenerativeQuestionConfigsRequest request = new BatchUpdateGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
    Requests =
    {
        new UpdateGenerativeQuestionConfigRequest(),
    },
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(request);

BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest, CancellationToken)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest request, CancellationToken cancellationToken)

Allows management of multiple questions.

Parameters
Name Description
request BatchUpdateGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateGenerativeQuestionConfigsRequest request = new BatchUpdateGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
    Requests =
    {
        new UpdateGenerativeQuestionConfigRequest(),
    },
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(request);

BatchUpdateGenerativeQuestionConfigsAsync(CatalogName, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CallSettings)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(CatalogName parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
parent CatalogName

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(parent, requests);

BatchUpdateGenerativeQuestionConfigsAsync(CatalogName, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CancellationToken)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(CatalogName parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CancellationToken cancellationToken)

Allows management of multiple questions.

Parameters
Name Description
parent CatalogName

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(parent, requests);

BatchUpdateGenerativeQuestionConfigsAsync(string, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CallSettings)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(string parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
parent string

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(parent, requests);

BatchUpdateGenerativeQuestionConfigsAsync(string, IEnumerable<UpdateGenerativeQuestionConfigRequest>, CancellationToken)

public virtual Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(string parent, IEnumerable<UpdateGenerativeQuestionConfigRequest> requests, CancellationToken cancellationToken)

Allows management of multiple questions.

Parameters
Name Description
parent string

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

requests IEnumerableUpdateGenerativeQuestionConfigRequest

Required. The updates question configs.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
IEnumerable<UpdateGenerativeQuestionConfigRequest> requests = new UpdateGenerativeQuestionConfigRequest[]
{
    new UpdateGenerativeQuestionConfigRequest(),
};
// Make the request
BatchUpdateGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.BatchUpdateGenerativeQuestionConfigsAsync(parent, requests);

Create()

public static GenerativeQuestionServiceClient Create()

Synchronously creates a GenerativeQuestionServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GenerativeQuestionServiceClientBuilder.

Returns
Type Description
GenerativeQuestionServiceClient

The created GenerativeQuestionServiceClient.

CreateAsync(CancellationToken)

public static Task<GenerativeQuestionServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a GenerativeQuestionServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GenerativeQuestionServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskGenerativeQuestionServiceClient

The task representing the created GenerativeQuestionServiceClient.

GetGenerativeQuestionsFeatureConfig(CatalogName, CallSettings)

public virtual GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(CatalogName catalog, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
CatalogName catalog = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
GenerativeQuestionsFeatureConfig response = generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfig(catalog);

GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest, CallSettings)

public virtual GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request GetGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
GetGenerativeQuestionsFeatureConfigRequest request = new GetGenerativeQuestionsFeatureConfigRequest
{
    CatalogAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
GenerativeQuestionsFeatureConfig response = generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfig(request);

GetGenerativeQuestionsFeatureConfig(string, CallSettings)

public virtual GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(string catalog, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
string catalog = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
GenerativeQuestionsFeatureConfig response = generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfig(catalog);

GetGenerativeQuestionsFeatureConfigAsync(CatalogName, CallSettings)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(CatalogName catalog, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName catalog = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(catalog);

GetGenerativeQuestionsFeatureConfigAsync(CatalogName, CancellationToken)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(CatalogName catalog, CancellationToken cancellationToken)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName catalog = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(catalog);

GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest, CallSettings)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request GetGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GetGenerativeQuestionsFeatureConfigRequest request = new GetGenerativeQuestionsFeatureConfigRequest
{
    CatalogAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(request);

GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest, CancellationToken)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest request, CancellationToken cancellationToken)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request GetGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GetGenerativeQuestionsFeatureConfigRequest request = new GetGenerativeQuestionsFeatureConfigRequest
{
    CatalogAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(request);

GetGenerativeQuestionsFeatureConfigAsync(string, CallSettings)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(string catalog, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string catalog = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(catalog);

GetGenerativeQuestionsFeatureConfigAsync(string, CancellationToken)

public virtual Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(string catalog, CancellationToken cancellationToken)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
catalog string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string catalog = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.GetGenerativeQuestionsFeatureConfigAsync(catalog);

ListGenerativeQuestionConfigs(CatalogName, CallSettings)

public virtual ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(CatalogName parent, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
parent CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ListGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
ListGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.ListGenerativeQuestionConfigs(parent);

ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest, CallSettings)

public virtual ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
request ListGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ListGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
ListGenerativeQuestionConfigsRequest request = new ListGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
ListGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.ListGenerativeQuestionConfigs(request);

ListGenerativeQuestionConfigs(string, CallSettings)

public virtual ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(string parent, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
parent string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ListGenerativeQuestionConfigsResponse

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
ListGenerativeQuestionConfigsResponse response = generativeQuestionServiceClient.ListGenerativeQuestionConfigs(parent);

ListGenerativeQuestionConfigsAsync(CatalogName, CallSettings)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(CatalogName parent, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
parent CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(parent);

ListGenerativeQuestionConfigsAsync(CatalogName, CancellationToken)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(CatalogName parent, CancellationToken cancellationToken)

Returns all questions for a given catalog.

Parameters
Name Description
parent CatalogName

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
CatalogName parent = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]");
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(parent);

ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest, CallSettings)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
request ListGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
ListGenerativeQuestionConfigsRequest request = new ListGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(request);

ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest, CancellationToken)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest request, CancellationToken cancellationToken)

Returns all questions for a given catalog.

Parameters
Name Description
request ListGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
ListGenerativeQuestionConfigsRequest request = new ListGenerativeQuestionConfigsRequest
{
    ParentAsCatalogName = CatalogName.FromProjectLocationCatalog("[PROJECT]", "[LOCATION]", "[CATALOG]"),
};
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(request);

ListGenerativeQuestionConfigsAsync(string, CallSettings)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(string parent, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
parent string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(parent);

ListGenerativeQuestionConfigsAsync(string, CancellationToken)

public virtual Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(string parent, CancellationToken cancellationToken)

Returns all questions for a given catalog.

Parameters
Name Description
parent string

Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]";
// Make the request
ListGenerativeQuestionConfigsResponse response = await generativeQuestionServiceClient.ListGenerativeQuestionConfigsAsync(parent);

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.

Remarks

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.

UpdateGenerativeQuestionConfig(GenerativeQuestionConfig, FieldMask, CallSettings)

public virtual GenerativeQuestionConfig UpdateGenerativeQuestionConfig(GenerativeQuestionConfig generativeQuestionConfig, FieldMask updateMask, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
generativeQuestionConfig GenerativeQuestionConfig

Required. The question to update.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionConfig][google.cloud.retail.v2.GenerativeQuestionConfig] to update. The following are NOT supported:

  • [GenerativeQuestionConfig.frequency][google.cloud.retail.v2.GenerativeQuestionConfig.frequency]

If not set or empty, all supported fields are updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
GenerativeQuestionConfig generativeQuestionConfig = new GenerativeQuestionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionConfig response = generativeQuestionServiceClient.UpdateGenerativeQuestionConfig(generativeQuestionConfig, updateMask);

UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest, CallSettings)

public virtual GenerativeQuestionConfig UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest request, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
request UpdateGenerativeQuestionConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
UpdateGenerativeQuestionConfigRequest request = new UpdateGenerativeQuestionConfigRequest
{
    GenerativeQuestionConfig = new GenerativeQuestionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionConfig response = generativeQuestionServiceClient.UpdateGenerativeQuestionConfig(request);

UpdateGenerativeQuestionConfigAsync(GenerativeQuestionConfig, FieldMask, CallSettings)

public virtual Task<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(GenerativeQuestionConfig generativeQuestionConfig, FieldMask updateMask, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
generativeQuestionConfig GenerativeQuestionConfig

Required. The question to update.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionConfig][google.cloud.retail.v2.GenerativeQuestionConfig] to update. The following are NOT supported:

  • [GenerativeQuestionConfig.frequency][google.cloud.retail.v2.GenerativeQuestionConfig.frequency]

If not set or empty, all supported fields are updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GenerativeQuestionConfig generativeQuestionConfig = new GenerativeQuestionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionConfigAsync(generativeQuestionConfig, updateMask);

UpdateGenerativeQuestionConfigAsync(GenerativeQuestionConfig, FieldMask, CancellationToken)

public virtual Task<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(GenerativeQuestionConfig generativeQuestionConfig, FieldMask updateMask, CancellationToken cancellationToken)

Allows management of individual questions.

Parameters
Name Description
generativeQuestionConfig GenerativeQuestionConfig

Required. The question to update.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionConfig][google.cloud.retail.v2.GenerativeQuestionConfig] to update. The following are NOT supported:

  • [GenerativeQuestionConfig.frequency][google.cloud.retail.v2.GenerativeQuestionConfig.frequency]

If not set or empty, all supported fields are updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GenerativeQuestionConfig generativeQuestionConfig = new GenerativeQuestionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionConfigAsync(generativeQuestionConfig, updateMask);

UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest, CallSettings)

public virtual Task<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest request, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
request UpdateGenerativeQuestionConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGenerativeQuestionConfigRequest request = new UpdateGenerativeQuestionConfigRequest
{
    GenerativeQuestionConfig = new GenerativeQuestionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionConfigAsync(request);

UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest, CancellationToken)

public virtual Task<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest request, CancellationToken cancellationToken)

Allows management of individual questions.

Parameters
Name Description
request UpdateGenerativeQuestionConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGenerativeQuestionConfigRequest request = new UpdateGenerativeQuestionConfigRequest
{
    GenerativeQuestionConfig = new GenerativeQuestionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionConfigAsync(request);

UpdateGenerativeQuestionsFeatureConfig(GenerativeQuestionsFeatureConfig, FieldMask, CallSettings)

public virtual GenerativeQuestionsFeatureConfig UpdateGenerativeQuestionsFeatureConfig(GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig, FieldMask updateMask, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
generativeQuestionsFeatureConfig GenerativeQuestionsFeatureConfig

Required. The configuration managing the feature state.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionsFeatureConfig][google.cloud.retail.v2.GenerativeQuestionsFeatureConfig] to update. If not set or empty, all supported fields are updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionsFeatureConfig response = generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfig(generativeQuestionsFeatureConfig, updateMask);

UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest, CallSettings)

public virtual GenerativeQuestionsFeatureConfig UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request UpdateGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = GenerativeQuestionServiceClient.Create();
// Initialize request argument(s)
UpdateGenerativeQuestionsFeatureConfigRequest request = new UpdateGenerativeQuestionsFeatureConfigRequest
{
    GenerativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionsFeatureConfig response = generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfig(request);

UpdateGenerativeQuestionsFeatureConfigAsync(GenerativeQuestionsFeatureConfig, FieldMask, CallSettings)

public virtual Task<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig, FieldMask updateMask, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
generativeQuestionsFeatureConfig GenerativeQuestionsFeatureConfig

Required. The configuration managing the feature state.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionsFeatureConfig][google.cloud.retail.v2.GenerativeQuestionsFeatureConfig] to update. If not set or empty, all supported fields are updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfigAsync(generativeQuestionsFeatureConfig, updateMask);

UpdateGenerativeQuestionsFeatureConfigAsync(GenerativeQuestionsFeatureConfig, FieldMask, CancellationToken)

public virtual Task<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig, FieldMask updateMask, CancellationToken cancellationToken)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
generativeQuestionsFeatureConfig GenerativeQuestionsFeatureConfig

Required. The configuration managing the feature state.

updateMask FieldMask

Optional. Indicates which fields in the provided [GenerativeQuestionsFeatureConfig][google.cloud.retail.v2.GenerativeQuestionsFeatureConfig] to update. If not set or empty, all supported fields are updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
GenerativeQuestionsFeatureConfig generativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfigAsync(generativeQuestionsFeatureConfig, updateMask);

UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest, CallSettings)

public virtual Task<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request UpdateGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGenerativeQuestionsFeatureConfigRequest request = new UpdateGenerativeQuestionsFeatureConfigRequest
{
    GenerativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfigAsync(request);

UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest, CancellationToken)

public virtual Task<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest request, CancellationToken cancellationToken)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request UpdateGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Example
// Create client
GenerativeQuestionServiceClient generativeQuestionServiceClient = await GenerativeQuestionServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGenerativeQuestionsFeatureConfigRequest request = new UpdateGenerativeQuestionsFeatureConfigRequest
{
    GenerativeQuestionsFeatureConfig = new GenerativeQuestionsFeatureConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GenerativeQuestionsFeatureConfig response = await generativeQuestionServiceClient.UpdateGenerativeQuestionsFeatureConfigAsync(request);