listAllFeedbackLabels method
List all feedback labels by project number.
Request parameters:
parent
- Required. The parent resource of all feedback labels per
project.
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
filter
- Optional. A filter to reduce results to a specific subset in
the entire project. Supports disjunctions (OR) and conjunctions (AND).
Supported fields: * issue_model_id
* qa_question_id
*
min_create_time
* max_create_time
* min_update_time
*
max_update_time
* feedback_label_type
: QUALITY_AI, TOPIC_MODELING
pageSize
- Optional. The maximum number of feedback labels to return in
the response. A valid page size ranges from 0 to 100,000 inclusive. If the
page size is zero or unspecified, a default page size of 100 will be
chosen. Note that a call might return fewer results than the requested
page size.
pageToken
- Optional. The value returned by the last
ListAllFeedbackLabelsResponse
. This value indicates that this is a
continuation of a prior ListAllFeedbackLabels
call and that the system
should return the next page of data.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse>
listAllFeedbackLabels(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ =
'v1/' + core.Uri.encodeFull('$parent') + ':listAllFeedbackLabels';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse
.fromJson(response_ as core.Map<core.String, core.dynamic>);
}