12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235 |
- // NOTE: This file was generated by the ServiceGenerator.
- // ----------------------------------------------------------------------------
- // API:
- // Cloud Vision API (vision/v1)
- // Description:
- // Integrates Google Vision features, including image labeling, face, logo,
- // and landmark detection, optical character recognition (OCR), and detection
- // of explicit content, into applications.
- // Documentation:
- // https://cloud.google.com/vision/
- #if GTLR_BUILT_AS_FRAMEWORK
- #import "GTLR/GTLRQuery.h"
- #else
- #import "GTLRQuery.h"
- #endif
- #if GTLR_RUNTIME_VERSION != 3000
- #error This file was generated by a different version of ServiceGenerator which is incompatible with this GTLR library source.
- #endif
- @class GTLRVision_AddProductToProductSetRequest;
- @class GTLRVision_AsyncBatchAnnotateFilesRequest;
- @class GTLRVision_BatchAnnotateImagesRequest;
- @class GTLRVision_CancelOperationRequest;
- @class GTLRVision_ImportProductSetsRequest;
- @class GTLRVision_Product;
- @class GTLRVision_ProductSet;
- @class GTLRVision_ReferenceImage;
- @class GTLRVision_RemoveProductFromProductSetRequest;
- // Generated comments include content from the discovery document; avoid them
- // causing warnings since clang's checks are some what arbitrary.
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdocumentation"
- NS_ASSUME_NONNULL_BEGIN
- /**
- * Parent class for other Vision query classes.
- */
- @interface GTLRVisionQuery : GTLRQuery
- /** Selector specifying which fields to include in a partial response. */
- @property(nonatomic, copy, nullable) NSString *fields;
- @end
- /**
- * Run asynchronous image detection and annotation for a list of generic
- * files, such as PDF files, which may contain multiple pages and multiple
- * images per page. Progress and results can be retrieved through the
- * `google.longrunning.Operations` interface.
- * `Operation.metadata` contains `OperationMetadata` (metadata).
- * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
- *
- * Method: vision.files.asyncBatchAnnotate
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_FilesAsyncBatchAnnotate : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForFilesAsyncBatchAnnotateWithObject:]
- /**
- * Fetches a @c GTLRVision_Operation.
- *
- * Run asynchronous image detection and annotation for a list of generic
- * files, such as PDF files, which may contain multiple pages and multiple
- * images per page. Progress and results can be retrieved through the
- * `google.longrunning.Operations` interface.
- * `Operation.metadata` contains `OperationMetadata` (metadata).
- * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
- *
- * @param object The @c GTLRVision_AsyncBatchAnnotateFilesRequest to include in
- * the query.
- *
- * @return GTLRVisionQuery_FilesAsyncBatchAnnotate
- */
- + (instancetype)queryWithObject:(GTLRVision_AsyncBatchAnnotateFilesRequest *)object;
- @end
- /**
- * Run image detection and annotation for a batch of images.
- *
- * Method: vision.images.annotate
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ImagesAnnotate : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForImagesAnnotateWithObject:]
- /**
- * Fetches a @c GTLRVision_BatchAnnotateImagesResponse.
- *
- * Run image detection and annotation for a batch of images.
- *
- * @param object The @c GTLRVision_BatchAnnotateImagesRequest to include in the
- * query.
- *
- * @return GTLRVisionQuery_ImagesAnnotate
- */
- + (instancetype)queryWithObject:(GTLRVision_BatchAnnotateImagesRequest *)object;
- @end
- /**
- * Gets the latest state of a long-running operation. Clients can use this
- * method to poll the operation result at intervals as recommended by the API
- * service.
- *
- * Method: vision.locations.operations.get
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_LocationsOperationsGet : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForLocationsOperationsGetWithname:]
- /** The name of the operation resource. */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Operation.
- *
- * Gets the latest state of a long-running operation. Clients can use this
- * method to poll the operation result at intervals as recommended by the API
- * service.
- *
- * @param name The name of the operation resource.
- *
- * @return GTLRVisionQuery_LocationsOperationsGet
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not
- * guaranteed. If the server doesn't support this method, it returns
- * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
- * Operations.GetOperation or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an Operation.error value with a google.rpc.Status.code of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Method: vision.operations.cancel
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_OperationsCancel : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForOperationsCancelWithObject:name:]
- /** The name of the operation resource to be cancelled. */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not
- * guaranteed. If the server doesn't support this method, it returns
- * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
- * Operations.GetOperation or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an Operation.error value with a google.rpc.Status.code of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * @param object The @c GTLRVision_CancelOperationRequest to include in the
- * query.
- * @param name The name of the operation resource to be cancelled.
- *
- * @return GTLRVisionQuery_OperationsCancel
- */
- + (instancetype)queryWithObject:(GTLRVision_CancelOperationRequest *)object
- name:(NSString *)name;
- @end
- /**
- * Deletes a long-running operation. This method indicates that the client is
- * no longer interested in the operation result. It does not cancel the
- * operation. If the server doesn't support this method, it returns
- * `google.rpc.Code.UNIMPLEMENTED`.
- *
- * Method: vision.operations.delete
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_OperationsDelete : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForOperationsDeleteWithname:]
- /** The name of the operation resource to be deleted. */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Deletes a long-running operation. This method indicates that the client is
- * no longer interested in the operation result. It does not cancel the
- * operation. If the server doesn't support this method, it returns
- * `google.rpc.Code.UNIMPLEMENTED`.
- *
- * @param name The name of the operation resource to be deleted.
- *
- * @return GTLRVisionQuery_OperationsDelete
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Gets the latest state of a long-running operation. Clients can use this
- * method to poll the operation result at intervals as recommended by the API
- * service.
- *
- * Method: vision.operations.get
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_OperationsGet : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForOperationsGetWithname:]
- /** The name of the operation resource. */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Operation.
- *
- * Gets the latest state of a long-running operation. Clients can use this
- * method to poll the operation result at intervals as recommended by the API
- * service.
- *
- * @param name The name of the operation resource.
- *
- * @return GTLRVisionQuery_OperationsGet
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Lists operations that match the specified filter in the request. If the
- * server doesn't support this method, it returns `UNIMPLEMENTED`.
- * NOTE: the `name` binding allows API services to override the binding
- * to use different resource name schemes, such as `users/ * /operations`. To
- * override the binding, API services can add a binding such as
- * `"/v1/{name=users/ *}/operations"` to their service configuration.
- * For backwards compatibility, the default name includes the operations
- * collection id, however overriding users must ensure the name binding
- * is the parent resource, without the operations collection id.
- *
- * Method: vision.operations.list
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_OperationsList : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForOperationsListWithname:]
- /** The standard list filter. */
- @property(nonatomic, copy, nullable) NSString *filter;
- /** The name of the operation's parent resource. */
- @property(nonatomic, copy, nullable) NSString *name;
- /** The standard list page size. */
- @property(nonatomic, assign) NSInteger pageSize;
- /** The standard list page token. */
- @property(nonatomic, copy, nullable) NSString *pageToken;
- /**
- * Fetches a @c GTLRVision_ListOperationsResponse.
- *
- * Lists operations that match the specified filter in the request. If the
- * server doesn't support this method, it returns `UNIMPLEMENTED`.
- * NOTE: the `name` binding allows API services to override the binding
- * to use different resource name schemes, such as `users/ * /operations`. To
- * override the binding, API services can add a binding such as
- * `"/v1/{name=users/ *}/operations"` to their service configuration.
- * For backwards compatibility, the default name includes the operations
- * collection id, however overriding users must ensure the name binding
- * is the parent resource, without the operations collection id.
- *
- * @param name The name of the operation's parent resource.
- *
- * @return GTLRVisionQuery_OperationsList
- *
- * @note Automatic pagination will be done when @c shouldFetchNextPages is
- * enabled. See @c shouldFetchNextPages on @c GTLRService for more
- * information.
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Creates and returns a new product resource.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
- * characters.
- * * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
- *
- * Method: vision.projects.locations.products.create
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsCreate : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsCreateWithObject:parent:]
- /**
- * The project in which the Product should be created.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * A user-supplied resource id for this Product. If set, the server will
- * attempt to use this value as the resource id. If it is already in use, an
- * error is returned with code ALREADY_EXISTS. Must be at most 128 characters
- * long. It cannot contain the character `/`.
- */
- @property(nonatomic, copy, nullable) NSString *productId;
- /**
- * Fetches a @c GTLRVision_Product.
- *
- * Creates and returns a new product resource.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
- * characters.
- * * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
- *
- * @param object The @c GTLRVision_Product to include in the query.
- * @param parent The project in which the Product should be created.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsCreate
- */
- + (instancetype)queryWithObject:(GTLRVision_Product *)object
- parent:(NSString *)parent;
- @end
- /**
- * Permanently deletes a product and its reference images.
- * Metadata of the product and all its images will be deleted right away, but
- * search queries against ProductSets containing the product may still work
- * until all related caches are refreshed.
- * Possible errors:
- * * Returns NOT_FOUND if the product does not exist.
- *
- * Method: vision.projects.locations.products.delete
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsDelete : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsDeleteWithname:]
- /**
- * Resource name of product to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Permanently deletes a product and its reference images.
- * Metadata of the product and all its images will be deleted right away, but
- * search queries against ProductSets containing the product may still work
- * until all related caches are refreshed.
- * Possible errors:
- * * Returns NOT_FOUND if the product does not exist.
- *
- * @param name Resource name of product to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsDelete
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Adds a Product to the specified ProductSet. If the Product is already
- * present, no change is made.
- * One Product can be added to at most 100 ProductSets.
- * Possible errors:
- * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
- *
- * Method: vision.projects.locations.productSets.addProduct
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsAddProduct : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsAddProductWithObject:name:]
- /**
- * The resource name for the ProductSet to modify.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Adds a Product to the specified ProductSet. If the Product is already
- * present, no change is made.
- * One Product can be added to at most 100 ProductSets.
- * Possible errors:
- * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
- *
- * @param object The @c GTLRVision_AddProductToProductSetRequest to include in
- * the query.
- * @param name The resource name for the ProductSet to modify.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsAddProduct
- */
- + (instancetype)queryWithObject:(GTLRVision_AddProductToProductSetRequest *)object
- name:(NSString *)name;
- @end
- /**
- * Creates and returns a new ProductSet resource.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
- * 4096 characters.
- *
- * Method: vision.projects.locations.productSets.create
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsCreate : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsCreateWithObject:parent:]
- /**
- * The project in which the ProductSet should be created.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * A user-supplied resource id for this ProductSet. If set, the server will
- * attempt to use this value as the resource id. If it is already in use, an
- * error is returned with code ALREADY_EXISTS. Must be at most 128 characters
- * long. It cannot contain the character `/`.
- */
- @property(nonatomic, copy, nullable) NSString *productSetId;
- /**
- * Fetches a @c GTLRVision_ProductSet.
- *
- * Creates and returns a new ProductSet resource.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
- * 4096 characters.
- *
- * @param object The @c GTLRVision_ProductSet to include in the query.
- * @param parent The project in which the ProductSet should be created.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsCreate
- */
- + (instancetype)queryWithObject:(GTLRVision_ProductSet *)object
- parent:(NSString *)parent;
- @end
- /**
- * Permanently deletes a ProductSet. Products and ReferenceImages in the
- * ProductSet are not deleted.
- * The actual image files are not deleted from Google Cloud Storage.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- *
- * Method: vision.projects.locations.productSets.delete
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsDelete : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsDeleteWithname:]
- /**
- * Resource name of the ProductSet to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Permanently deletes a ProductSet. Products and ReferenceImages in the
- * ProductSet are not deleted.
- * The actual image files are not deleted from Google Cloud Storage.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- *
- * @param name Resource name of the ProductSet to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsDelete
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Gets information associated with a ProductSet.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- *
- * Method: vision.projects.locations.productSets.get
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsGet : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsGetWithname:]
- /**
- * Resource name of the ProductSet to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_ProductSet.
- *
- * Gets information associated with a ProductSet.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- *
- * @param name Resource name of the ProductSet to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsGet
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Asynchronous API that imports a list of reference images to specified
- * product sets based on a list of image information.
- * The google.longrunning.Operation API can be used to keep track of the
- * progress and results of the request.
- * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
- * `Operation.response` contains `ImportProductSetsResponse`. (results)
- * The input source of this method is a csv file on Google Cloud Storage.
- * For the format of the csv file please see
- * ImportProductSetsGcsSource.csv_file_uri.
- *
- * Method: vision.projects.locations.productSets.import
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsImport : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsImportWithObject:parent:]
- /**
- * The project in which the ProductSets should be imported.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * Fetches a @c GTLRVision_Operation.
- *
- * Asynchronous API that imports a list of reference images to specified
- * product sets based on a list of image information.
- * The google.longrunning.Operation API can be used to keep track of the
- * progress and results of the request.
- * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
- * `Operation.response` contains `ImportProductSetsResponse`. (results)
- * The input source of this method is a csv file on Google Cloud Storage.
- * For the format of the csv file please see
- * ImportProductSetsGcsSource.csv_file_uri.
- *
- * @param object The @c GTLRVision_ImportProductSetsRequest to include in the
- * query.
- * @param parent The project in which the ProductSets should be imported.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsImport
- */
- + (instancetype)queryWithObject:(GTLRVision_ImportProductSetsRequest *)object
- parent:(NSString *)parent;
- @end
- /**
- * Lists ProductSets in an unspecified order.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
- * than 1.
- *
- * Method: vision.projects.locations.productSets.list
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsList : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsListWithparent:]
- /** The maximum number of items to return. Default 10, maximum 100. */
- @property(nonatomic, assign) NSInteger pageSize;
- /** The next_page_token returned from a previous List request, if any. */
- @property(nonatomic, copy, nullable) NSString *pageToken;
- /**
- * The project from which ProductSets should be listed.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * Fetches a @c GTLRVision_ListProductSetsResponse.
- *
- * Lists ProductSets in an unspecified order.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
- * than 1.
- *
- * @param parent The project from which ProductSets should be listed.
- * Format is `projects/PROJECT_ID/locations/LOC_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsList
- *
- * @note Automatic pagination will be done when @c shouldFetchNextPages is
- * enabled. See @c shouldFetchNextPages on @c GTLRService for more
- * information.
- */
- + (instancetype)queryWithParent:(NSString *)parent;
- @end
- /**
- * Makes changes to a ProductSet resource.
- * Only display_name can be updated currently.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- * * Returns INVALID_ARGUMENT if display_name is present in update_mask but
- * missing from the request or longer than 4096 characters.
- *
- * Method: vision.projects.locations.productSets.patch
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsPatch : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsPatchWithObject:name:]
- /**
- * The resource name of the ProductSet.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
- * This field is ignored when creating a ProductSet.
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * The FieldMask that specifies which fields to
- * update.
- * If update_mask isn't specified, all mutable fields are to be updated.
- * Valid mask path is `display_name`.
- *
- * String format is a comma-separated list of fields.
- */
- @property(nonatomic, copy, nullable) NSString *updateMask;
- /**
- * Fetches a @c GTLRVision_ProductSet.
- *
- * Makes changes to a ProductSet resource.
- * Only display_name can be updated currently.
- * Possible errors:
- * * Returns NOT_FOUND if the ProductSet does not exist.
- * * Returns INVALID_ARGUMENT if display_name is present in update_mask but
- * missing from the request or longer than 4096 characters.
- *
- * @param object The @c GTLRVision_ProductSet to include in the query.
- * @param name The resource name of the ProductSet.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
- * This field is ignored when creating a ProductSet.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsPatch
- */
- + (instancetype)queryWithObject:(GTLRVision_ProductSet *)object
- name:(NSString *)name;
- @end
- /**
- * Lists the Products in a ProductSet, in an unspecified order. If the
- * ProductSet does not exist, the products field of the response will be
- * empty.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
- *
- * Method: vision.projects.locations.productSets.products.list
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsProductsList : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsProductsListWithname:]
- /**
- * The ProductSet resource for which to retrieve Products.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /** The maximum number of items to return. Default 10, maximum 100. */
- @property(nonatomic, assign) NSInteger pageSize;
- /** The next_page_token returned from a previous List request, if any. */
- @property(nonatomic, copy, nullable) NSString *pageToken;
- /**
- * Fetches a @c GTLRVision_ListProductsInProductSetResponse.
- *
- * Lists the Products in a ProductSet, in an unspecified order. If the
- * ProductSet does not exist, the products field of the response will be
- * empty.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
- *
- * @param name The ProductSet resource for which to retrieve Products.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsProductsList
- *
- * @note Automatic pagination will be done when @c shouldFetchNextPages is
- * enabled. See @c shouldFetchNextPages on @c GTLRService for more
- * information.
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Removes a Product from the specified ProductSet.
- * Possible errors:
- * * Returns NOT_FOUND If the Product is not found under the ProductSet.
- *
- * Method: vision.projects.locations.productSets.removeProduct
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductSetsRemoveProduct : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductSetsRemoveProductWithObject:name:]
- /**
- * The resource name for the ProductSet to modify.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Removes a Product from the specified ProductSet.
- * Possible errors:
- * * Returns NOT_FOUND If the Product is not found under the ProductSet.
- *
- * @param object The @c GTLRVision_RemoveProductFromProductSetRequest to
- * include in the query.
- * @param name The resource name for the ProductSet to modify.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductSetsRemoveProduct
- */
- + (instancetype)queryWithObject:(GTLRVision_RemoveProductFromProductSetRequest *)object
- name:(NSString *)name;
- @end
- /**
- * Gets information associated with a Product.
- * Possible errors:
- * * Returns NOT_FOUND if the Product does not exist.
- *
- * Method: vision.projects.locations.products.get
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsGet : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsGetWithname:]
- /**
- * Resource name of the Product to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Product.
- *
- * Gets information associated with a Product.
- * Possible errors:
- * * Returns NOT_FOUND if the Product does not exist.
- *
- * @param name Resource name of the Product to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsGet
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Lists products in an unspecified order.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
- *
- * Method: vision.projects.locations.products.list
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsList : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsListWithparent:]
- /** The maximum number of items to return. Default 10, maximum 100. */
- @property(nonatomic, assign) NSInteger pageSize;
- /** The next_page_token returned from a previous List request, if any. */
- @property(nonatomic, copy, nullable) NSString *pageToken;
- /**
- * The project OR ProductSet from which Products should be listed.
- * Format:
- * `projects/PROJECT_ID/locations/LOC_ID`
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * Fetches a @c GTLRVision_ListProductsResponse.
- *
- * Lists products in an unspecified order.
- * Possible errors:
- * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
- *
- * @param parent The project OR ProductSet from which Products should be
- * listed.
- * Format:
- * `projects/PROJECT_ID/locations/LOC_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsList
- *
- * @note Automatic pagination will be done when @c shouldFetchNextPages is
- * enabled. See @c shouldFetchNextPages on @c GTLRService for more
- * information.
- */
- + (instancetype)queryWithParent:(NSString *)parent;
- @end
- /**
- * Makes changes to a Product resource.
- * Only the `display_name`, `description`, and `labels` fields can be updated
- * right now.
- * If labels are updated, the change will not be reflected in queries until
- * the next index time.
- * Possible errors:
- * * Returns NOT_FOUND if the Product does not exist.
- * * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
- * missing from the request or longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if description is present in update_mask but is
- * longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
- *
- * Method: vision.projects.locations.products.patch
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsPatch : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsPatchWithObject:name:]
- /**
- * The resource name of the product.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- * This field is ignored when creating a product.
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * The FieldMask that specifies which fields
- * to update.
- * If update_mask isn't specified, all mutable fields are to be updated.
- * Valid mask paths include `product_labels`, `display_name`, and
- * `description`.
- *
- * String format is a comma-separated list of fields.
- */
- @property(nonatomic, copy, nullable) NSString *updateMask;
- /**
- * Fetches a @c GTLRVision_Product.
- *
- * Makes changes to a Product resource.
- * Only the `display_name`, `description`, and `labels` fields can be updated
- * right now.
- * If labels are updated, the change will not be reflected in queries until
- * the next index time.
- * Possible errors:
- * * Returns NOT_FOUND if the Product does not exist.
- * * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
- * missing from the request or longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if description is present in update_mask but is
- * longer than 4096 characters.
- * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
- *
- * @param object The @c GTLRVision_Product to include in the query.
- * @param name The resource name of the product.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- * This field is ignored when creating a product.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsPatch
- */
- + (instancetype)queryWithObject:(GTLRVision_Product *)object
- name:(NSString *)name;
- @end
- /**
- * Creates and returns a new ReferenceImage resource.
- * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
- * the system will try to detect regions of interest in the image that are
- * compatible with the product_category on the parent product. If it is
- * specified, detection is ALWAYS skipped. The system converts polygons into
- * non-rotated rectangles.
- * Note that the pipeline will resize the image if the image resolution is too
- * large to process (above 50MP).
- * Possible errors:
- * * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
- * characters.
- * * Returns INVALID_ARGUMENT if the product does not exist.
- * * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
- * compatible with the parent product's product_category is detected.
- * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
- *
- * Method: vision.projects.locations.products.referenceImages.create
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesCreate : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesCreateWithObject:parent:]
- /**
- * Resource name of the product in which to create the reference image.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * A user-supplied resource id for the ReferenceImage to be added. If set,
- * the server will attempt to use this value as the resource id. If it is
- * already in use, an error is returned with code ALREADY_EXISTS. Must be at
- * most 128 characters long. It cannot contain the character `/`.
- */
- @property(nonatomic, copy, nullable) NSString *referenceImageId;
- /**
- * Fetches a @c GTLRVision_ReferenceImage.
- *
- * Creates and returns a new ReferenceImage resource.
- * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
- * the system will try to detect regions of interest in the image that are
- * compatible with the product_category on the parent product. If it is
- * specified, detection is ALWAYS skipped. The system converts polygons into
- * non-rotated rectangles.
- * Note that the pipeline will resize the image if the image resolution is too
- * large to process (above 50MP).
- * Possible errors:
- * * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
- * characters.
- * * Returns INVALID_ARGUMENT if the product does not exist.
- * * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
- * compatible with the parent product's product_category is detected.
- * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
- *
- * @param object The @c GTLRVision_ReferenceImage to include in the query.
- * @param parent Resource name of the product in which to create the reference
- * image.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesCreate
- */
- + (instancetype)queryWithObject:(GTLRVision_ReferenceImage *)object
- parent:(NSString *)parent;
- @end
- /**
- * Permanently deletes a reference image.
- * The image metadata will be deleted right away, but search queries
- * against ProductSets containing the image may still work until all related
- * caches are refreshed.
- * The actual image files are not deleted from Google Cloud Storage.
- * Possible errors:
- * * Returns NOT_FOUND if the reference image does not exist.
- *
- * Method: vision.projects.locations.products.referenceImages.delete
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesDelete : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesDeleteWithname:]
- /**
- * The resource name of the reference image to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_Empty.
- *
- * Permanently deletes a reference image.
- * The image metadata will be deleted right away, but search queries
- * against ProductSets containing the image may still work until all related
- * caches are refreshed.
- * The actual image files are not deleted from Google Cloud Storage.
- * Possible errors:
- * * Returns NOT_FOUND if the reference image does not exist.
- *
- * @param name The resource name of the reference image to delete.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesDelete
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Gets information associated with a ReferenceImage.
- * Possible errors:
- * * Returns NOT_FOUND if the specified image does not exist.
- *
- * Method: vision.projects.locations.products.referenceImages.get
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesGet : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesGetWithname:]
- /**
- * The resource name of the ReferenceImage to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *name;
- /**
- * Fetches a @c GTLRVision_ReferenceImage.
- *
- * Gets information associated with a ReferenceImage.
- * Possible errors:
- * * Returns NOT_FOUND if the specified image does not exist.
- *
- * @param name The resource name of the ReferenceImage to get.
- * Format is:
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesGet
- */
- + (instancetype)queryWithName:(NSString *)name;
- @end
- /**
- * Lists reference images.
- * Possible errors:
- * * Returns NOT_FOUND if the parent product does not exist.
- * * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
- * than 1.
- *
- * Method: vision.projects.locations.products.referenceImages.list
- *
- * Authorization scope(s):
- * @c kGTLRAuthScopeVisionCloudPlatform
- * @c kGTLRAuthScopeVisionCloudVision
- */
- @interface GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesList : GTLRVisionQuery
- // Previous library name was
- // +[GTLQueryVision queryForProjectsLocationsProductsReferenceImagesListWithparent:]
- /** The maximum number of items to return. Default 10, maximum 100. */
- @property(nonatomic, assign) NSInteger pageSize;
- /**
- * A token identifying a page of results to be returned. This is the value
- * of `nextPageToken` returned in a previous reference image list request.
- * Defaults to the first page if not specified.
- */
- @property(nonatomic, copy, nullable) NSString *pageToken;
- /**
- * Resource name of the product containing the reference images.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- */
- @property(nonatomic, copy, nullable) NSString *parent;
- /**
- * Fetches a @c GTLRVision_ListReferenceImagesResponse.
- *
- * Lists reference images.
- * Possible errors:
- * * Returns NOT_FOUND if the parent product does not exist.
- * * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
- * than 1.
- *
- * @param parent Resource name of the product containing the reference images.
- * Format is
- * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
- *
- * @return GTLRVisionQuery_ProjectsLocationsProductsReferenceImagesList
- *
- * @note Automatic pagination will be done when @c shouldFetchNextPages is
- * enabled. See @c shouldFetchNextPages on @c GTLRService for more
- * information.
- */
- + (instancetype)queryWithParent:(NSString *)parent;
- @end
- NS_ASSUME_NONNULL_END
- #pragma clang diagnostic pop
|