source: vendor/google/apiclient-services/src/DataLabeling/Resource/ProjectsDatasetsAnnotatedDatasetsExamples.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.4 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\GoogleCloudDatalabelingV1beta1Example;
21use Google\Service\DataLabeling\GoogleCloudDatalabelingV1beta1ListExamplesResponse;
22
23/**
24 * The "examples" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $datalabelingService = new Google\Service\DataLabeling(...);
28 * $examples = $datalabelingService->projects_datasets_annotatedDatasets_examples;
29 * </code>
30 */
31class ProjectsDatasetsAnnotatedDatasetsExamples extends \Google\Service\Resource
32{
33 /**
34 * Gets an example by resource name, including both data and annotation.
35 * (examples.get)
36 *
37 * @param string $name Required. Name of example, format:
38 * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
39 * {annotated_dataset_id}/examples/{example_id}
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string filter Optional. An expression for filtering Examples.
43 * Filter by annotation_spec.display_name is supported. Format
44 * "annotation_spec.display_name = {display_name}"
45 * @return GoogleCloudDatalabelingV1beta1Example
46 * @throws \Google\Service\Exception
47 */
48 public function get($name, $optParams = [])
49 {
50 $params = ['name' => $name];
51 $params = array_merge($params, $optParams);
52 return $this->call('get', [$params], GoogleCloudDatalabelingV1beta1Example::class);
53 }
54 /**
55 * Lists examples in an annotated dataset. Pagination is supported.
56 * (examples.listProjectsDatasetsAnnotatedDatasetsExamples)
57 *
58 * @param string $parent Required. Example resource parent.
59 * @param array $optParams Optional parameters.
60 *
61 * @opt_param string filter Optional. An expression for filtering Examples. For
62 * annotated datasets that have annotation spec set, filter by
63 * annotation_spec.display_name is supported. Format
64 * "annotation_spec.display_name = {display_name}"
65 * @opt_param int pageSize Optional. Requested page size. Server may return
66 * fewer results than requested. Default value is 100.
67 * @opt_param string pageToken Optional. A token identifying a page of results
68 * for the server to return. Typically obtained by
69 * ListExamplesResponse.next_page_token of the previous
70 * [DataLabelingService.ListExamples] call. Return first page if empty.
71 * @return GoogleCloudDatalabelingV1beta1ListExamplesResponse
72 * @throws \Google\Service\Exception
73 */
74 public function listProjectsDatasetsAnnotatedDatasetsExamples($parent, $optParams = [])
75 {
76 $params = ['parent' => $parent];
77 $params = array_merge($params, $optParams);
78 return $this->call('list', [$params], GoogleCloudDatalabelingV1beta1ListExamplesResponse::class);
79 }
80}
81
82// Adding a class alias for backwards compatibility with the previous class name.
83class_alias(ProjectsDatasetsAnnotatedDatasetsExamples::class, 'Google_Service_DataLabeling_Resource_ProjectsDatasetsAnnotatedDatasetsExamples');
Note: See TracBrowser for help on using the repository browser.