GTLRVisionQuery.h 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235
  1. // NOTE: This file was generated by the ServiceGenerator.
  2. // ----------------------------------------------------------------------------
  3. // API:
  4. // Cloud Vision API (vision/v1)
  5. // Description:
  6. // Integrates Google Vision features, including image labeling, face, logo,
  7. // and landmark detection, optical character recognition (OCR), and detection
  8. // of explicit content, into applications.
  9. // Documentation:
  10. // https://cloud.google.com/vision/
  11. #if GTLR_BUILT_AS_FRAMEWORK
  12. #import "GTLR/GTLRQuery.h"
  13. #else
  14. #import "GTLRQuery.h"
  15. #endif
  16. #if GTLR_RUNTIME_VERSION != 3000
  17. #error This file was generated by a different version of ServiceGenerator which is incompatible with this GTLR library source.
  18. #endif
  19. @class GTLRVision_AddProductToProductSetRequest;
  20. @class GTLRVision_AsyncBatchAnnotateFilesRequest;
  21. @class GTLRVision_BatchAnnotateImagesRequest;
  22. @class GTLRVision_CancelOperationRequest;
  23. @class GTLRVision_ImportProductSetsRequest;
  24. @class GTLRVision_Product;
  25. @class GTLRVision_ProductSet;
  26. @class GTLRVision_ReferenceImage;
  27. @class GTLRVision_RemoveProductFromProductSetRequest;
  28. // Generated comments include content from the discovery document; avoid them
  29. // causing warnings since clang's checks are some what arbitrary.
  30. #pragma clang diagnostic push
  31. #pragma clang diagnostic ignored "-Wdocumentation"
  32. NS_ASSUME_NONNULL_BEGIN
  33. /**
  34. * Parent class for other Vision query classes.
  35. */
  36. @interface GTLRVisionQuery : GTLRQuery
  37. /** Selector specifying which fields to include in a partial response. */
  38. @property(nonatomic, copy, nullable) NSString *fields;
  39. @end
  40. /**
  41. * Run asynchronous image detection and annotation for a list of generic
  42. * files, such as PDF files, which may contain multiple pages and multiple
  43. * images per page. Progress and results can be retrieved through the
  44. * `google.longrunning.Operations` interface.
  45. * `Operation.metadata` contains `OperationMetadata` (metadata).
  46. * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
  47. *
  48. * Method: vision.files.asyncBatchAnnotate
  49. *
  50. * Authorization scope(s):
  51. * @c kGTLRAuthScopeVisionCloudPlatform
  52. * @c kGTLRAuthScopeVisionCloudVision
  53. */
  54. @interface GTLRVisionQuery_FilesAsyncBatchAnnotate : GTLRVisionQuery
  55. // Previous library name was
  56. // +[GTLQueryVision queryForFilesAsyncBatchAnnotateWithObject:]
  57. /**
  58. * Fetches a @c GTLRVision_Operation.
  59. *
  60. * Run asynchronous image detection and annotation for a list of generic
  61. * files, such as PDF files, which may contain multiple pages and multiple
  62. * images per page. Progress and results can be retrieved through the
  63. * `google.longrunning.Operations` interface.
  64. * `Operation.metadata` contains `OperationMetadata` (metadata).
  65. * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
  66. *
  67. * @param object The @c GTLRVision_AsyncBatchAnnotateFilesRequest to include in
  68. * the query.
  69. *
  70. * @return GTLRVisionQuery_FilesAsyncBatchAnnotate
  71. */
  72. + (instancetype)queryWithObject:(GTLRVision_AsyncBatchAnnotateFilesRequest *)object;
  73. @end
  74. /**
  75. * Run image detection and annotation for a batch of images.
  76. *
  77. * Method: vision.images.annotate
  78. *
  79. * Authorization scope(s):
  80. * @c kGTLRAuthScopeVisionCloudPlatform
  81. * @c kGTLRAuthScopeVisionCloudVision
  82. */
  83. @interface GTLRVisionQuery_ImagesAnnotate : GTLRVisionQuery
  84. // Previous library name was
  85. // +[GTLQueryVision queryForImagesAnnotateWithObject:]
  86. /**
  87. * Fetches a @c GTLRVision_BatchAnnotateImagesResponse.
  88. *
  89. * Run image detection and annotation for a batch of images.
  90. *
  91. * @param object The @c GTLRVision_BatchAnnotateImagesRequest to include in the
  92. * query.
  93. *
  94. * @return GTLRVisionQuery_ImagesAnnotate
  95. */
  96. + (instancetype)queryWithObject:(GTLRVision_BatchAnnotateImagesRequest *)object;
  97. @end
  98. /**
  99. * Gets the latest state of a long-running operation. Clients can use this
  100. * method to poll the operation result at intervals as recommended by the API
  101. * service.
  102. *
  103. * Method: vision.locations.operations.get
  104. *
  105. * Authorization scope(s):
  106. * @c kGTLRAuthScopeVisionCloudPlatform
  107. * @c kGTLRAuthScopeVisionCloudVision
  108. */
  109. @interface GTLRVisionQuery_LocationsOperationsGet : GTLRVisionQuery
  110. // Previous library name was
  111. // +[GTLQueryVision queryForLocationsOperationsGetWithname:]
  112. /** The name of the operation resource. */
  113. @property(nonatomic, copy, nullable) NSString *name;
  114. /**
  115. * Fetches a @c GTLRVision_Operation.
  116. *
  117. * Gets the latest state of a long-running operation. Clients can use this
  118. * method to poll the operation result at intervals as recommended by the API
  119. * service.
  120. *
  121. * @param name The name of the operation resource.
  122. *
  123. * @return GTLRVisionQuery_LocationsOperationsGet
  124. */
  125. + (instancetype)queryWithName:(NSString *)name;
  126. @end
  127. /**
  128. * Starts asynchronous cancellation on a long-running operation. The server
  129. * makes a best effort to cancel the operation, but success is not
  130. * guaranteed. If the server doesn't support this method, it returns
  131. * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
  132. * Operations.GetOperation or
  133. * other methods to check whether the cancellation succeeded or whether the
  134. * operation completed despite cancellation. On successful cancellation,
  135. * the operation is not deleted; instead, it becomes an operation with
  136. * an Operation.error value with a google.rpc.Status.code of 1,
  137. * corresponding to `Code.CANCELLED`.
  138. *
  139. * Method: vision.operations.cancel
  140. *
  141. * Authorization scope(s):
  142. * @c kGTLRAuthScopeVisionCloudPlatform
  143. * @c kGTLRAuthScopeVisionCloudVision
  144. */
  145. @interface GTLRVisionQuery_OperationsCancel : GTLRVisionQuery
  146. // Previous library name was
  147. // +[GTLQueryVision queryForOperationsCancelWithObject:name:]
  148. /** The name of the operation resource to be cancelled. */
  149. @property(nonatomic, copy, nullable) NSString *name;
  150. /**
  151. * Fetches a @c GTLRVision_Empty.
  152. *
  153. * Starts asynchronous cancellation on a long-running operation. The server
  154. * makes a best effort to cancel the operation, but success is not
  155. * guaranteed. If the server doesn't support this method, it returns
  156. * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
  157. * Operations.GetOperation or
  158. * other methods to check whether the cancellation succeeded or whether the
  159. * operation completed despite cancellation. On successful cancellation,
  160. * the operation is not deleted; instead, it becomes an operation with
  161. * an Operation.error value with a google.rpc.Status.code of 1,
  162. * corresponding to `Code.CANCELLED`.
  163. *
  164. * @param object The @c GTLRVision_CancelOperationRequest to include in the
  165. * query.
  166. * @param name The name of the operation resource to be cancelled.
  167. *
  168. * @return GTLRVisionQuery_OperationsCancel
  169. */
  170. + (instancetype)queryWithObject:(GTLRVision_CancelOperationRequest *)object
  171. name:(NSString *)name;
  172. @end
  173. /**
  174. * Deletes a long-running operation. This method indicates that the client is
  175. * no longer interested in the operation result. It does not cancel the
  176. * operation. If the server doesn't support this method, it returns
  177. * `google.rpc.Code.UNIMPLEMENTED`.
  178. *
  179. * Method: vision.operations.delete
  180. *
  181. * Authorization scope(s):
  182. * @c kGTLRAuthScopeVisionCloudPlatform
  183. * @c kGTLRAuthScopeVisionCloudVision
  184. */
  185. @interface GTLRVisionQuery_OperationsDelete : GTLRVisionQuery
  186. // Previous library name was
  187. // +[GTLQueryVision queryForOperationsDeleteWithname:]
  188. /** The name of the operation resource to be deleted. */
  189. @property(nonatomic, copy, nullable) NSString *name;
  190. /**
  191. * Fetches a @c GTLRVision_Empty.
  192. *
  193. * Deletes a long-running operation. This method indicates that the client is
  194. * no longer interested in the operation result. It does not cancel the
  195. * operation. If the server doesn't support this method, it returns
  196. * `google.rpc.Code.UNIMPLEMENTED`.
  197. *
  198. * @param name The name of the operation resource to be deleted.
  199. *
  200. * @return GTLRVisionQuery_OperationsDelete
  201. */
  202. + (instancetype)queryWithName:(NSString *)name;
  203. @end
  204. /**
  205. * Gets the latest state of a long-running operation. Clients can use this
  206. * method to poll the operation result at intervals as recommended by the API
  207. * service.
  208. *
  209. * Method: vision.operations.get
  210. *
  211. * Authorization scope(s):
  212. * @c kGTLRAuthScopeVisionCloudPlatform
  213. * @c kGTLRAuthScopeVisionCloudVision
  214. */
  215. @interface GTLRVisionQuery_OperationsGet : GTLRVisionQuery
  216. // Previous library name was
  217. // +[GTLQueryVision queryForOperationsGetWithname:]
  218. /** The name of the operation resource. */
  219. @property(nonatomic, copy, nullable) NSString *name;
  220. /**
  221. * Fetches a @c GTLRVision_Operation.
  222. *
  223. * Gets the latest state of a long-running operation. Clients can use this
  224. * method to poll the operation result at intervals as recommended by the API
  225. * service.
  226. *
  227. * @param name The name of the operation resource.
  228. *
  229. * @return GTLRVisionQuery_OperationsGet
  230. */
  231. + (instancetype)queryWithName:(NSString *)name;
  232. @end
  233. /**
  234. * Lists operations that match the specified filter in the request. If the
  235. * server doesn't support this method, it returns `UNIMPLEMENTED`.
  236. * NOTE: the `name` binding allows API services to override the binding
  237. * to use different resource name schemes, such as `users/ * /operations`. To
  238. * override the binding, API services can add a binding such as
  239. * `"/v1/{name=users/ *}/operations"` to their service configuration.
  240. * For backwards compatibility, the default name includes the operations
  241. * collection id, however overriding users must ensure the name binding
  242. * is the parent resource, without the operations collection id.
  243. *
  244. * Method: vision.operations.list
  245. *
  246. * Authorization scope(s):
  247. * @c kGTLRAuthScopeVisionCloudPlatform
  248. * @c kGTLRAuthScopeVisionCloudVision
  249. */
  250. @interface GTLRVisionQuery_OperationsList : GTLRVisionQuery
  251. // Previous library name was
  252. // +[GTLQueryVision queryForOperationsListWithname:]
  253. /** The standard list filter. */
  254. @property(nonatomic, copy, nullable) NSString *filter;
  255. /** The name of the operation's parent resource. */
  256. @property(nonatomic, copy, nullable) NSString *name;
  257. /** The standard list page size. */
  258. @property(nonatomic, assign) NSInteger pageSize;
  259. /** The standard list page token. */
  260. @property(nonatomic, copy, nullable) NSString *pageToken;
  261. /**
  262. * Fetches a @c GTLRVision_ListOperationsResponse.
  263. *
  264. * Lists operations that match the specified filter in the request. If the
  265. * server doesn't support this method, it returns `UNIMPLEMENTED`.
  266. * NOTE: the `name` binding allows API services to override the binding
  267. * to use different resource name schemes, such as `users/ * /operations`. To
  268. * override the binding, API services can add a binding such as
  269. * `"/v1/{name=users/ *}/operations"` to their service configuration.
  270. * For backwards compatibility, the default name includes the operations
  271. * collection id, however overriding users must ensure the name binding
  272. * is the parent resource, without the operations collection id.
  273. *
  274. * @param name The name of the operation's parent resource.
  275. *
  276. * @return GTLRVisionQuery_OperationsList
  277. *
  278. * @note Automatic pagination will be done when @c shouldFetchNextPages is
  279. * enabled. See @c shouldFetchNextPages on @c GTLRService for more
  280. * information.
  281. */
  282. + (instancetype)queryWithName:(NSString *)name;
  283. @end
  284. /**
  285. * Creates and returns a new product resource.
  286. * Possible errors:
  287. * * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
  288. * characters.
  289. * * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
  290. * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
  291. *
  292. * Method: vision.projects.locations.products.create
  293. *
  294. * Authorization scope(s):
  295. * @c kGTLRAuthScopeVisionCloudPlatform
  296. * @c kGTLRAuthScopeVisionCloudVision
  297. */
  298. @interface GTLRVisionQuery_ProjectsLocationsProductsCreate : GTLRVisionQuery
  299. // Previous library name was
  300. // +[GTLQueryVision queryForProjectsLocationsProductsCreateWithObject:parent:]
  301. /**
  302. * The project in which the Product should be created.
  303. * Format is
  304. * `projects/PROJECT_ID/locations/LOC_ID`.
  305. */
  306. @property(nonatomic, copy, nullable) NSString *parent;
  307. /**
  308. * A user-supplied resource id for this Product. If set, the server will
  309. * attempt to use this value as the resource id. If it is already in use, an
  310. * error is returned with code ALREADY_EXISTS. Must be at most 128 characters
  311. * long. It cannot contain the character `/`.
  312. */
  313. @property(nonatomic, copy, nullable) NSString *productId;
  314. /**
  315. * Fetches a @c GTLRVision_Product.
  316. *
  317. * Creates and returns a new product resource.
  318. * Possible errors:
  319. * * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
  320. * characters.
  321. * * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
  322. * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
  323. *
  324. * @param object The @c GTLRVision_Product to include in the query.
  325. * @param parent The project in which the Product should be created.
  326. * Format is
  327. * `projects/PROJECT_ID/locations/LOC_ID`.
  328. *
  329. * @return GTLRVisionQuery_ProjectsLocationsProductsCreate
  330. */
  331. + (instancetype)queryWithObject:(GTLRVision_Product *)object
  332. parent:(NSString *)parent;
  333. @end
  334. /**
  335. * Permanently deletes a product and its reference images.
  336. * Metadata of the product and all its images will be deleted right away, but
  337. * search queries against ProductSets containing the product may still work
  338. * until all related caches are refreshed.
  339. * Possible errors:
  340. * * Returns NOT_FOUND if the product does not exist.
  341. *
  342. * Method: vision.projects.locations.products.delete
  343. *
  344. * Authorization scope(s):
  345. * @c kGTLRAuthScopeVisionCloudPlatform
  346. * @c kGTLRAuthScopeVisionCloudVision
  347. */
  348. @interface GTLRVisionQuery_ProjectsLocationsProductsDelete : GTLRVisionQuery
  349. // Previous library name was
  350. // +[GTLQueryVision queryForProjectsLocationsProductsDeleteWithname:]
  351. /**
  352. * Resource name of product to delete.
  353. * Format is:
  354. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
  355. */
  356. @property(nonatomic, copy, nullable) NSString *name;
  357. /**
  358. * Fetches a @c GTLRVision_Empty.
  359. *
  360. * Permanently deletes a product and its reference images.
  361. * Metadata of the product and all its images will be deleted right away, but
  362. * search queries against ProductSets containing the product may still work
  363. * until all related caches are refreshed.
  364. * Possible errors:
  365. * * Returns NOT_FOUND if the product does not exist.
  366. *
  367. * @param name Resource name of product to delete.
  368. * Format is:
  369. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
  370. *
  371. * @return GTLRVisionQuery_ProjectsLocationsProductsDelete
  372. */
  373. + (instancetype)queryWithName:(NSString *)name;
  374. @end
  375. /**
  376. * Adds a Product to the specified ProductSet. If the Product is already
  377. * present, no change is made.
  378. * One Product can be added to at most 100 ProductSets.
  379. * Possible errors:
  380. * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
  381. *
  382. * Method: vision.projects.locations.productSets.addProduct
  383. *
  384. * Authorization scope(s):
  385. * @c kGTLRAuthScopeVisionCloudPlatform
  386. * @c kGTLRAuthScopeVisionCloudVision
  387. */
  388. @interface GTLRVisionQuery_ProjectsLocationsProductSetsAddProduct : GTLRVisionQuery
  389. // Previous library name was
  390. // +[GTLQueryVision queryForProjectsLocationsProductSetsAddProductWithObject:name:]
  391. /**
  392. * The resource name for the ProductSet to modify.
  393. * Format is:
  394. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  395. */
  396. @property(nonatomic, copy, nullable) NSString *name;
  397. /**
  398. * Fetches a @c GTLRVision_Empty.
  399. *
  400. * Adds a Product to the specified ProductSet. If the Product is already
  401. * present, no change is made.
  402. * One Product can be added to at most 100 ProductSets.
  403. * Possible errors:
  404. * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
  405. *
  406. * @param object The @c GTLRVision_AddProductToProductSetRequest to include in
  407. * the query.
  408. * @param name The resource name for the ProductSet to modify.
  409. * Format is:
  410. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  411. *
  412. * @return GTLRVisionQuery_ProjectsLocationsProductSetsAddProduct
  413. */
  414. + (instancetype)queryWithObject:(GTLRVision_AddProductToProductSetRequest *)object
  415. name:(NSString *)name;
  416. @end
  417. /**
  418. * Creates and returns a new ProductSet resource.
  419. * Possible errors:
  420. * * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
  421. * 4096 characters.
  422. *
  423. * Method: vision.projects.locations.productSets.create
  424. *
  425. * Authorization scope(s):
  426. * @c kGTLRAuthScopeVisionCloudPlatform
  427. * @c kGTLRAuthScopeVisionCloudVision
  428. */
  429. @interface GTLRVisionQuery_ProjectsLocationsProductSetsCreate : GTLRVisionQuery
  430. // Previous library name was
  431. // +[GTLQueryVision queryForProjectsLocationsProductSetsCreateWithObject:parent:]
  432. /**
  433. * The project in which the ProductSet should be created.
  434. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  435. */
  436. @property(nonatomic, copy, nullable) NSString *parent;
  437. /**
  438. * A user-supplied resource id for this ProductSet. If set, the server will
  439. * attempt to use this value as the resource id. If it is already in use, an
  440. * error is returned with code ALREADY_EXISTS. Must be at most 128 characters
  441. * long. It cannot contain the character `/`.
  442. */
  443. @property(nonatomic, copy, nullable) NSString *productSetId;
  444. /**
  445. * Fetches a @c GTLRVision_ProductSet.
  446. *
  447. * Creates and returns a new ProductSet resource.
  448. * Possible errors:
  449. * * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
  450. * 4096 characters.
  451. *
  452. * @param object The @c GTLRVision_ProductSet to include in the query.
  453. * @param parent The project in which the ProductSet should be created.
  454. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  455. *
  456. * @return GTLRVisionQuery_ProjectsLocationsProductSetsCreate
  457. */
  458. + (instancetype)queryWithObject:(GTLRVision_ProductSet *)object
  459. parent:(NSString *)parent;
  460. @end
  461. /**
  462. * Permanently deletes a ProductSet. Products and ReferenceImages in the
  463. * ProductSet are not deleted.
  464. * The actual image files are not deleted from Google Cloud Storage.
  465. * Possible errors:
  466. * * Returns NOT_FOUND if the ProductSet does not exist.
  467. *
  468. * Method: vision.projects.locations.productSets.delete
  469. *
  470. * Authorization scope(s):
  471. * @c kGTLRAuthScopeVisionCloudPlatform
  472. * @c kGTLRAuthScopeVisionCloudVision
  473. */
  474. @interface GTLRVisionQuery_ProjectsLocationsProductSetsDelete : GTLRVisionQuery
  475. // Previous library name was
  476. // +[GTLQueryVision queryForProjectsLocationsProductSetsDeleteWithname:]
  477. /**
  478. * Resource name of the ProductSet to delete.
  479. * Format is:
  480. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  481. */
  482. @property(nonatomic, copy, nullable) NSString *name;
  483. /**
  484. * Fetches a @c GTLRVision_Empty.
  485. *
  486. * Permanently deletes a ProductSet. Products and ReferenceImages in the
  487. * ProductSet are not deleted.
  488. * The actual image files are not deleted from Google Cloud Storage.
  489. * Possible errors:
  490. * * Returns NOT_FOUND if the ProductSet does not exist.
  491. *
  492. * @param name Resource name of the ProductSet to delete.
  493. * Format is:
  494. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  495. *
  496. * @return GTLRVisionQuery_ProjectsLocationsProductSetsDelete
  497. */
  498. + (instancetype)queryWithName:(NSString *)name;
  499. @end
  500. /**
  501. * Gets information associated with a ProductSet.
  502. * Possible errors:
  503. * * Returns NOT_FOUND if the ProductSet does not exist.
  504. *
  505. * Method: vision.projects.locations.productSets.get
  506. *
  507. * Authorization scope(s):
  508. * @c kGTLRAuthScopeVisionCloudPlatform
  509. * @c kGTLRAuthScopeVisionCloudVision
  510. */
  511. @interface GTLRVisionQuery_ProjectsLocationsProductSetsGet : GTLRVisionQuery
  512. // Previous library name was
  513. // +[GTLQueryVision queryForProjectsLocationsProductSetsGetWithname:]
  514. /**
  515. * Resource name of the ProductSet to get.
  516. * Format is:
  517. * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
  518. */
  519. @property(nonatomic, copy, nullable) NSString *name;
  520. /**
  521. * Fetches a @c GTLRVision_ProductSet.
  522. *
  523. * Gets information associated with a ProductSet.
  524. * Possible errors:
  525. * * Returns NOT_FOUND if the ProductSet does not exist.
  526. *
  527. * @param name Resource name of the ProductSet to get.
  528. * Format is:
  529. * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
  530. *
  531. * @return GTLRVisionQuery_ProjectsLocationsProductSetsGet
  532. */
  533. + (instancetype)queryWithName:(NSString *)name;
  534. @end
  535. /**
  536. * Asynchronous API that imports a list of reference images to specified
  537. * product sets based on a list of image information.
  538. * The google.longrunning.Operation API can be used to keep track of the
  539. * progress and results of the request.
  540. * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
  541. * `Operation.response` contains `ImportProductSetsResponse`. (results)
  542. * The input source of this method is a csv file on Google Cloud Storage.
  543. * For the format of the csv file please see
  544. * ImportProductSetsGcsSource.csv_file_uri.
  545. *
  546. * Method: vision.projects.locations.productSets.import
  547. *
  548. * Authorization scope(s):
  549. * @c kGTLRAuthScopeVisionCloudPlatform
  550. * @c kGTLRAuthScopeVisionCloudVision
  551. */
  552. @interface GTLRVisionQuery_ProjectsLocationsProductSetsImport : GTLRVisionQuery
  553. // Previous library name was
  554. // +[GTLQueryVision queryForProjectsLocationsProductSetsImportWithObject:parent:]
  555. /**
  556. * The project in which the ProductSets should be imported.
  557. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  558. */
  559. @property(nonatomic, copy, nullable) NSString *parent;
  560. /**
  561. * Fetches a @c GTLRVision_Operation.
  562. *
  563. * Asynchronous API that imports a list of reference images to specified
  564. * product sets based on a list of image information.
  565. * The google.longrunning.Operation API can be used to keep track of the
  566. * progress and results of the request.
  567. * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
  568. * `Operation.response` contains `ImportProductSetsResponse`. (results)
  569. * The input source of this method is a csv file on Google Cloud Storage.
  570. * For the format of the csv file please see
  571. * ImportProductSetsGcsSource.csv_file_uri.
  572. *
  573. * @param object The @c GTLRVision_ImportProductSetsRequest to include in the
  574. * query.
  575. * @param parent The project in which the ProductSets should be imported.
  576. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  577. *
  578. * @return GTLRVisionQuery_ProjectsLocationsProductSetsImport
  579. */
  580. + (instancetype)queryWithObject:(GTLRVision_ImportProductSetsRequest *)object
  581. parent:(NSString *)parent;
  582. @end
  583. /**
  584. * Lists ProductSets in an unspecified order.
  585. * Possible errors:
  586. * * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
  587. * than 1.
  588. *
  589. * Method: vision.projects.locations.productSets.list
  590. *
  591. * Authorization scope(s):
  592. * @c kGTLRAuthScopeVisionCloudPlatform
  593. * @c kGTLRAuthScopeVisionCloudVision
  594. */
  595. @interface GTLRVisionQuery_ProjectsLocationsProductSetsList : GTLRVisionQuery
  596. // Previous library name was
  597. // +[GTLQueryVision queryForProjectsLocationsProductSetsListWithparent:]
  598. /** The maximum number of items to return. Default 10, maximum 100. */
  599. @property(nonatomic, assign) NSInteger pageSize;
  600. /** The next_page_token returned from a previous List request, if any. */
  601. @property(nonatomic, copy, nullable) NSString *pageToken;
  602. /**
  603. * The project from which ProductSets should be listed.
  604. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  605. */
  606. @property(nonatomic, copy, nullable) NSString *parent;
  607. /**
  608. * Fetches a @c GTLRVision_ListProductSetsResponse.
  609. *
  610. * Lists ProductSets in an unspecified order.
  611. * Possible errors:
  612. * * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
  613. * than 1.
  614. *
  615. * @param parent The project from which ProductSets should be listed.
  616. * Format is `projects/PROJECT_ID/locations/LOC_ID`.
  617. *
  618. * @return GTLRVisionQuery_ProjectsLocationsProductSetsList
  619. *
  620. * @note Automatic pagination will be done when @c shouldFetchNextPages is
  621. * enabled. See @c shouldFetchNextPages on @c GTLRService for more
  622. * information.
  623. */
  624. + (instancetype)queryWithParent:(NSString *)parent;
  625. @end
  626. /**
  627. * Makes changes to a ProductSet resource.
  628. * Only display_name can be updated currently.
  629. * Possible errors:
  630. * * Returns NOT_FOUND if the ProductSet does not exist.
  631. * * Returns INVALID_ARGUMENT if display_name is present in update_mask but
  632. * missing from the request or longer than 4096 characters.
  633. *
  634. * Method: vision.projects.locations.productSets.patch
  635. *
  636. * Authorization scope(s):
  637. * @c kGTLRAuthScopeVisionCloudPlatform
  638. * @c kGTLRAuthScopeVisionCloudVision
  639. */
  640. @interface GTLRVisionQuery_ProjectsLocationsProductSetsPatch : GTLRVisionQuery
  641. // Previous library name was
  642. // +[GTLQueryVision queryForProjectsLocationsProductSetsPatchWithObject:name:]
  643. /**
  644. * The resource name of the ProductSet.
  645. * Format is:
  646. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
  647. * This field is ignored when creating a ProductSet.
  648. */
  649. @property(nonatomic, copy, nullable) NSString *name;
  650. /**
  651. * The FieldMask that specifies which fields to
  652. * update.
  653. * If update_mask isn't specified, all mutable fields are to be updated.
  654. * Valid mask path is `display_name`.
  655. *
  656. * String format is a comma-separated list of fields.
  657. */
  658. @property(nonatomic, copy, nullable) NSString *updateMask;
  659. /**
  660. * Fetches a @c GTLRVision_ProductSet.
  661. *
  662. * Makes changes to a ProductSet resource.
  663. * Only display_name can be updated currently.
  664. * Possible errors:
  665. * * Returns NOT_FOUND if the ProductSet does not exist.
  666. * * Returns INVALID_ARGUMENT if display_name is present in update_mask but
  667. * missing from the request or longer than 4096 characters.
  668. *
  669. * @param object The @c GTLRVision_ProductSet to include in the query.
  670. * @param name The resource name of the ProductSet.
  671. * Format is:
  672. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
  673. * This field is ignored when creating a ProductSet.
  674. *
  675. * @return GTLRVisionQuery_ProjectsLocationsProductSetsPatch
  676. */
  677. + (instancetype)queryWithObject:(GTLRVision_ProductSet *)object
  678. name:(NSString *)name;
  679. @end
  680. /**
  681. * Lists the Products in a ProductSet, in an unspecified order. If the
  682. * ProductSet does not exist, the products field of the response will be
  683. * empty.
  684. * Possible errors:
  685. * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
  686. *
  687. * Method: vision.projects.locations.productSets.products.list
  688. *
  689. * Authorization scope(s):
  690. * @c kGTLRAuthScopeVisionCloudPlatform
  691. * @c kGTLRAuthScopeVisionCloudVision
  692. */
  693. @interface GTLRVisionQuery_ProjectsLocationsProductSetsProductsList : GTLRVisionQuery
  694. // Previous library name was
  695. // +[GTLQueryVision queryForProjectsLocationsProductSetsProductsListWithname:]
  696. /**
  697. * The ProductSet resource for which to retrieve Products.
  698. * Format is:
  699. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  700. */
  701. @property(nonatomic, copy, nullable) NSString *name;
  702. /** The maximum number of items to return. Default 10, maximum 100. */
  703. @property(nonatomic, assign) NSInteger pageSize;
  704. /** The next_page_token returned from a previous List request, if any. */
  705. @property(nonatomic, copy, nullable) NSString *pageToken;
  706. /**
  707. * Fetches a @c GTLRVision_ListProductsInProductSetResponse.
  708. *
  709. * Lists the Products in a ProductSet, in an unspecified order. If the
  710. * ProductSet does not exist, the products field of the response will be
  711. * empty.
  712. * Possible errors:
  713. * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
  714. *
  715. * @param name The ProductSet resource for which to retrieve Products.
  716. * Format is:
  717. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  718. *
  719. * @return GTLRVisionQuery_ProjectsLocationsProductSetsProductsList
  720. *
  721. * @note Automatic pagination will be done when @c shouldFetchNextPages is
  722. * enabled. See @c shouldFetchNextPages on @c GTLRService for more
  723. * information.
  724. */
  725. + (instancetype)queryWithName:(NSString *)name;
  726. @end
  727. /**
  728. * Removes a Product from the specified ProductSet.
  729. * Possible errors:
  730. * * Returns NOT_FOUND If the Product is not found under the ProductSet.
  731. *
  732. * Method: vision.projects.locations.productSets.removeProduct
  733. *
  734. * Authorization scope(s):
  735. * @c kGTLRAuthScopeVisionCloudPlatform
  736. * @c kGTLRAuthScopeVisionCloudVision
  737. */
  738. @interface GTLRVisionQuery_ProjectsLocationsProductSetsRemoveProduct : GTLRVisionQuery
  739. // Previous library name was
  740. // +[GTLQueryVision queryForProjectsLocationsProductSetsRemoveProductWithObject:name:]
  741. /**
  742. * The resource name for the ProductSet to modify.
  743. * Format is:
  744. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  745. */
  746. @property(nonatomic, copy, nullable) NSString *name;
  747. /**
  748. * Fetches a @c GTLRVision_Empty.
  749. *
  750. * Removes a Product from the specified ProductSet.
  751. * Possible errors:
  752. * * Returns NOT_FOUND If the Product is not found under the ProductSet.
  753. *
  754. * @param object The @c GTLRVision_RemoveProductFromProductSetRequest to
  755. * include in the query.
  756. * @param name The resource name for the ProductSet to modify.
  757. * Format is:
  758. * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  759. *
  760. * @return GTLRVisionQuery_ProjectsLocationsProductSetsRemoveProduct
  761. */
  762. + (instancetype)queryWithObject:(GTLRVision_RemoveProductFromProductSetRequest *)object
  763. name:(NSString *)name;
  764. @end
  765. /**
  766. * Gets information associated with a Product.
  767. * Possible errors:
  768. * * Returns NOT_FOUND if the Product does not exist.
  769. *
  770. * Method: vision.projects.locations.products.get
  771. *
  772. * Authorization scope(s):
  773. * @c kGTLRAuthScopeVisionCloudPlatform
  774. * @c kGTLRAuthScopeVisionCloudVision
  775. */
  776. @interface GTLRVisionQuery_ProjectsLocationsProductsGet : GTLRVisionQuery
  777. // Previous library name was
  778. // +[GTLQueryVision queryForProjectsLocationsProductsGetWithname:]
  779. /**
  780. * Resource name of the Product to get.
  781. * Format is:
  782. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
  783. */
  784. @property(nonatomic, copy, nullable) NSString *name;
  785. /**
  786. * Fetches a @c GTLRVision_Product.
  787. *
  788. * Gets information associated with a Product.
  789. * Possible errors:
  790. * * Returns NOT_FOUND if the Product does not exist.
  791. *
  792. * @param name Resource name of the Product to get.
  793. * Format is:
  794. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
  795. *
  796. * @return GTLRVisionQuery_ProjectsLocationsProductsGet
  797. */
  798. + (instancetype)queryWithName:(NSString *)name;
  799. @end
  800. /**
  801. * Lists products in an unspecified order.
  802. * Possible errors:
  803. * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
  804. *
  805. * Method: vision.projects.locations.products.list
  806. *
  807. * Authorization scope(s):
  808. * @c kGTLRAuthScopeVisionCloudPlatform
  809. * @c kGTLRAuthScopeVisionCloudVision
  810. */
  811. @interface GTLRVisionQuery_ProjectsLocationsProductsList : GTLRVisionQuery
  812. // Previous library name was
  813. // +[GTLQueryVision queryForProjectsLocationsProductsListWithparent:]
  814. /** The maximum number of items to return. Default 10, maximum 100. */
  815. @property(nonatomic, assign) NSInteger pageSize;
  816. /** The next_page_token returned from a previous List request, if any. */
  817. @property(nonatomic, copy, nullable) NSString *pageToken;
  818. /**
  819. * The project OR ProductSet from which Products should be listed.
  820. * Format:
  821. * `projects/PROJECT_ID/locations/LOC_ID`
  822. */
  823. @property(nonatomic, copy, nullable) NSString *parent;
  824. /**
  825. * Fetches a @c GTLRVision_ListProductsResponse.
  826. *
  827. * Lists products in an unspecified order.
  828. * Possible errors:
  829. * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
  830. *
  831. * @param parent The project OR ProductSet from which Products should be
  832. * listed.
  833. * Format:
  834. * `projects/PROJECT_ID/locations/LOC_ID`
  835. *
  836. * @return GTLRVisionQuery_ProjectsLocationsProductsList
  837. *
  838. * @note Automatic pagination will be done when @c shouldFetchNextPages is
  839. * enabled. See @c shouldFetchNextPages on @c GTLRService for more
  840. * information.
  841. */
  842. + (instancetype)queryWithParent:(NSString *)parent;
  843. @end
  844. /**
  845. * Makes changes to a Product resource.
  846. * Only the `display_name`, `description`, and `labels` fields can be updated
  847. * right now.
  848. * If labels are updated, the change will not be reflected in queries until
  849. * the next index time.
  850. * Possible errors:
  851. * * Returns NOT_FOUND if the Product does not exist.
  852. * * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
  853. * missing from the request or longer than 4096 characters.
  854. * * Returns INVALID_ARGUMENT if description is present in update_mask but is
  855. * longer than 4096 characters.
  856. * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
  857. *
  858. * Method: vision.projects.locations.products.patch
  859. *
  860. * Authorization scope(s):
  861. * @c kGTLRAuthScopeVisionCloudPlatform
  862. * @c kGTLRAuthScopeVisionCloudVision
  863. */
  864. @interface GTLRVisionQuery_ProjectsLocationsProductsPatch : GTLRVisionQuery
  865. // Previous library name was
  866. // +[GTLQueryVision queryForProjectsLocationsProductsPatchWithObject:name:]
  867. /**
  868. * The resource name of the product.
  869. * Format is:
  870. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  871. * This field is ignored when creating a product.
  872. */
  873. @property(nonatomic, copy, nullable) NSString *name;
  874. /**
  875. * The FieldMask that specifies which fields
  876. * to update.
  877. * If update_mask isn't specified, all mutable fields are to be updated.
  878. * Valid mask paths include `product_labels`, `display_name`, and
  879. * `description`.
  880. *
  881. * String format is a comma-separated list of fields.
  882. */
  883. @property(nonatomic, copy, nullable) NSString *updateMask;
  884. /**
  885. * Fetches a @c GTLRVision_Product.
  886. *
  887. * Makes changes to a Product resource.
  888. * Only the `display_name`, `description`, and `labels` fields can be updated
  889. * right now.
  890. * If labels are updated, the change will not be reflected in queries until
  891. * the next index time.
  892. * Possible errors:
  893. * * Returns NOT_FOUND if the Product does not exist.
  894. * * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
  895. * missing from the request or longer than 4096 characters.
  896. * * Returns INVALID_ARGUMENT if description is present in update_mask but is
  897. * longer than 4096 characters.
  898. * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
  899. *
  900. * @param object The @c GTLRVision_Product to include in the query.
  901. * @param name The resource name of the product.
  902. * Format is:
  903. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  904. * This field is ignored when creating a product.
  905. *
  906. * @return GTLRVisionQuery_ProjectsLocationsProductsPatch
  907. */
  908. + (instancetype)queryWithObject:(GTLRVision_Product *)object
  909. name:(NSString *)name;
  910. @end
  911. /**
  912. * Creates and returns a new ReferenceImage resource.
  913. * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
  914. * the system will try to detect regions of interest in the image that are
  915. * compatible with the product_category on the parent product. If it is
  916. * specified, detection is ALWAYS skipped. The system converts polygons into
  917. * non-rotated rectangles.
  918. * Note that the pipeline will resize the image if the image resolution is too
  919. * large to process (above 50MP).
  920. * Possible errors:
  921. * * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
  922. * characters.
  923. * * Returns INVALID_ARGUMENT if the product does not exist.
  924. * * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
  925. * compatible with the parent product's product_category is detected.
  926. * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
  927. *
  928. * Method: vision.projects.locations.products.referenceImages.create
  929. *
  930. * Authorization scope(s):
  931. * @c kGTLRAuthScopeVisionCloudPlatform
  932. * @c kGTLRAuthScopeVisionCloudVision
  933. */
  934. @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesCreate : GTLRVisionQuery
  935. // Previous library name was
  936. // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesCreateWithObject:parent:]
  937. /**
  938. * Resource name of the product in which to create the reference image.
  939. * Format is
  940. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  941. */
  942. @property(nonatomic, copy, nullable) NSString *parent;
  943. /**
  944. * A user-supplied resource id for the ReferenceImage to be added. If set,
  945. * the server will attempt to use this value as the resource id. If it is
  946. * already in use, an error is returned with code ALREADY_EXISTS. Must be at
  947. * most 128 characters long. It cannot contain the character `/`.
  948. */
  949. @property(nonatomic, copy, nullable) NSString *referenceImageId;
  950. /**
  951. * Fetches a @c GTLRVision_ReferenceImage.
  952. *
  953. * Creates and returns a new ReferenceImage resource.
  954. * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
  955. * the system will try to detect regions of interest in the image that are
  956. * compatible with the product_category on the parent product. If it is
  957. * specified, detection is ALWAYS skipped. The system converts polygons into
  958. * non-rotated rectangles.
  959. * Note that the pipeline will resize the image if the image resolution is too
  960. * large to process (above 50MP).
  961. * Possible errors:
  962. * * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
  963. * characters.
  964. * * Returns INVALID_ARGUMENT if the product does not exist.
  965. * * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
  966. * compatible with the parent product's product_category is detected.
  967. * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
  968. *
  969. * @param object The @c GTLRVision_ReferenceImage to include in the query.
  970. * @param parent Resource name of the product in which to create the reference
  971. * image.
  972. * Format is
  973. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  974. *
  975. * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesCreate
  976. */
  977. + (instancetype)queryWithObject:(GTLRVision_ReferenceImage *)object
  978. parent:(NSString *)parent;
  979. @end
  980. /**
  981. * Permanently deletes a reference image.
  982. * The image metadata will be deleted right away, but search queries
  983. * against ProductSets containing the image may still work until all related
  984. * caches are refreshed.
  985. * The actual image files are not deleted from Google Cloud Storage.
  986. * Possible errors:
  987. * * Returns NOT_FOUND if the reference image does not exist.
  988. *
  989. * Method: vision.projects.locations.products.referenceImages.delete
  990. *
  991. * Authorization scope(s):
  992. * @c kGTLRAuthScopeVisionCloudPlatform
  993. * @c kGTLRAuthScopeVisionCloudVision
  994. */
  995. @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesDelete : GTLRVisionQuery
  996. // Previous library name was
  997. // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesDeleteWithname:]
  998. /**
  999. * The resource name of the reference image to delete.
  1000. * Format is:
  1001. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
  1002. */
  1003. @property(nonatomic, copy, nullable) NSString *name;
  1004. /**
  1005. * Fetches a @c GTLRVision_Empty.
  1006. *
  1007. * Permanently deletes a reference image.
  1008. * The image metadata will be deleted right away, but search queries
  1009. * against ProductSets containing the image may still work until all related
  1010. * caches are refreshed.
  1011. * The actual image files are not deleted from Google Cloud Storage.
  1012. * Possible errors:
  1013. * * Returns NOT_FOUND if the reference image does not exist.
  1014. *
  1015. * @param name The resource name of the reference image to delete.
  1016. * Format is:
  1017. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
  1018. *
  1019. * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesDelete
  1020. */
  1021. + (instancetype)queryWithName:(NSString *)name;
  1022. @end
  1023. /**
  1024. * Gets information associated with a ReferenceImage.
  1025. * Possible errors:
  1026. * * Returns NOT_FOUND if the specified image does not exist.
  1027. *
  1028. * Method: vision.projects.locations.products.referenceImages.get
  1029. *
  1030. * Authorization scope(s):
  1031. * @c kGTLRAuthScopeVisionCloudPlatform
  1032. * @c kGTLRAuthScopeVisionCloudVision
  1033. */
  1034. @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesGet : GTLRVisionQuery
  1035. // Previous library name was
  1036. // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesGetWithname:]
  1037. /**
  1038. * The resource name of the ReferenceImage to get.
  1039. * Format is:
  1040. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
  1041. */
  1042. @property(nonatomic, copy, nullable) NSString *name;
  1043. /**
  1044. * Fetches a @c GTLRVision_ReferenceImage.
  1045. *
  1046. * Gets information associated with a ReferenceImage.
  1047. * Possible errors:
  1048. * * Returns NOT_FOUND if the specified image does not exist.
  1049. *
  1050. * @param name The resource name of the ReferenceImage to get.
  1051. * Format is:
  1052. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
  1053. *
  1054. * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesGet
  1055. */
  1056. + (instancetype)queryWithName:(NSString *)name;
  1057. @end
  1058. /**
  1059. * Lists reference images.
  1060. * Possible errors:
  1061. * * Returns NOT_FOUND if the parent product does not exist.
  1062. * * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
  1063. * than 1.
  1064. *
  1065. * Method: vision.projects.locations.products.referenceImages.list
  1066. *
  1067. * Authorization scope(s):
  1068. * @c kGTLRAuthScopeVisionCloudPlatform
  1069. * @c kGTLRAuthScopeVisionCloudVision
  1070. */
  1071. @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesList : GTLRVisionQuery
  1072. // Previous library name was
  1073. // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesListWithparent:]
  1074. /** The maximum number of items to return. Default 10, maximum 100. */
  1075. @property(nonatomic, assign) NSInteger pageSize;
  1076. /**
  1077. * A token identifying a page of results to be returned. This is the value
  1078. * of `nextPageToken` returned in a previous reference image list request.
  1079. * Defaults to the first page if not specified.
  1080. */
  1081. @property(nonatomic, copy, nullable) NSString *pageToken;
  1082. /**
  1083. * Resource name of the product containing the reference images.
  1084. * Format is
  1085. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  1086. */
  1087. @property(nonatomic, copy, nullable) NSString *parent;
  1088. /**
  1089. * Fetches a @c GTLRVision_ListReferenceImagesResponse.
  1090. *
  1091. * Lists reference images.
  1092. * Possible errors:
  1093. * * Returns NOT_FOUND if the parent product does not exist.
  1094. * * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
  1095. * than 1.
  1096. *
  1097. * @param parent Resource name of the product containing the reference images.
  1098. * Format is
  1099. * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
  1100. *
  1101. * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesList
  1102. *
  1103. * @note Automatic pagination will be done when @c shouldFetchNextPages is
  1104. * enabled. See @c shouldFetchNextPages on @c GTLRService for more
  1105. * information.
  1106. */
  1107. + (instancetype)queryWithParent:(NSString *)parent;
  1108. @end
  1109. NS_ASSUME_NONNULL_END
  1110. #pragma clang diagnostic pop