source: vendor/google/apiclient-services/src/DataLabeling/Resource/ProjectsDatasetsAnnotatedDatasetsFeedbackThreads.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 12 days ago

Upload new project files

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DataLabeling\Resource;
19
20use Google\Service\DataLabeling\GoogleCloudDatalabelingV1beta1FeedbackThread;
21use Google\Service\DataLabeling\GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse;
22use Google\Service\DataLabeling\GoogleProtobufEmpty;
23
24/**
25 * The "feedbackThreads" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $datalabelingService = new Google\Service\DataLabeling(...);
29 * $feedbackThreads = $datalabelingService->projects_datasets_annotatedDatasets_feedbackThreads;
30 * </code>
31 */
32class ProjectsDatasetsAnnotatedDatasetsFeedbackThreads extends \Google\Service\Resource
33{
34 /**
35 * Delete a FeedbackThread. (feedbackThreads.delete)
36 *
37 * @param string $name Required. Name of the FeedbackThread that is going to be
38 * deleted. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatase
39 * ts/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'.
40 * @param array $optParams Optional parameters.
41 * @return GoogleProtobufEmpty
42 * @throws \Google\Service\Exception
43 */
44 public function delete($name, $optParams = [])
45 {
46 $params = ['name' => $name];
47 $params = array_merge($params, $optParams);
48 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
49 }
50 /**
51 * Get a FeedbackThread object. (feedbackThreads.get)
52 *
53 * @param string $name Required. Name of the feedback. Format: 'projects/{projec
54 * t_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedback
55 * Threads/{feedback_thread_id}'.
56 * @param array $optParams Optional parameters.
57 * @return GoogleCloudDatalabelingV1beta1FeedbackThread
58 * @throws \Google\Service\Exception
59 */
60 public function get($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('get', [$params], GoogleCloudDatalabelingV1beta1FeedbackThread::class);
65 }
66 /**
67 * List FeedbackThreads with pagination.
68 * (feedbackThreads.listProjectsDatasetsAnnotatedDatasetsFeedbackThreads)
69 *
70 * @param string $parent Required. FeedbackThread resource parent. Format: "proj
71 * ects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_
72 * id}"
73 * @param array $optParams Optional parameters.
74 *
75 * @opt_param int pageSize Optional. Requested page size. Server may return
76 * fewer results than requested. Default value is 100.
77 * @opt_param string pageToken Optional. A token identifying a page of results
78 * for the server to return. Typically obtained by
79 * ListFeedbackThreads.next_page_token of the previous
80 * [DataLabelingService.ListFeedbackThreads] call. Return first page if empty.
81 * @return GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse
82 * @throws \Google\Service\Exception
83 */
84 public function listProjectsDatasetsAnnotatedDatasetsFeedbackThreads($parent, $optParams = [])
85 {
86 $params = ['parent' => $parent];
87 $params = array_merge($params, $optParams);
88 return $this->call('list', [$params], GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse::class);
89 }
90}
91
92// Adding a class alias for backwards compatibility with the previous class name.
93class_alias(ProjectsDatasetsAnnotatedDatasetsFeedbackThreads::class, 'Google_Service_DataLabeling_Resource_ProjectsDatasetsAnnotatedDatasetsFeedbackThreads');
Note: See TracBrowser for help on using the repository browser.