GTLRVisionService.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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/GTLRService.h"
  13. #else
  14. #import "GTLRService.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. // Generated comments include content from the discovery document; avoid them
  20. // causing warnings since clang's checks are some what arbitrary.
  21. #pragma clang diagnostic push
  22. #pragma clang diagnostic ignored "-Wdocumentation"
  23. NS_ASSUME_NONNULL_BEGIN
  24. // ----------------------------------------------------------------------------
  25. // Authorization scopes
  26. /**
  27. * Authorization scope: View and manage your data across Google Cloud Platform
  28. * services
  29. *
  30. * Value "https://www.googleapis.com/auth/cloud-platform"
  31. */
  32. GTLR_EXTERN NSString * const kGTLRAuthScopeVisionCloudPlatform;
  33. /**
  34. * Authorization scope: Apply machine learning models to understand and label
  35. * images
  36. *
  37. * Value "https://www.googleapis.com/auth/cloud-vision"
  38. */
  39. GTLR_EXTERN NSString * const kGTLRAuthScopeVisionCloudVision;
  40. // ----------------------------------------------------------------------------
  41. // GTLRVisionService
  42. //
  43. /**
  44. * Service for executing Cloud Vision API queries.
  45. *
  46. * Integrates Google Vision features, including image labeling, face, logo, and
  47. * landmark detection, optical character recognition (OCR), and detection of
  48. * explicit content, into applications.
  49. */
  50. @interface GTLRVisionService : GTLRService
  51. // No new methods
  52. // Clients should create a standard query with any of the class methods in
  53. // GTLRVisionQuery.h. The query can the be sent with GTLRService's execute
  54. // methods,
  55. //
  56. // - (GTLRServiceTicket *)executeQuery:(GTLRQuery *)query
  57. // completionHandler:(void (^)(GTLRServiceTicket *ticket,
  58. // id object, NSError *error))handler;
  59. // or
  60. // - (GTLRServiceTicket *)executeQuery:(GTLRQuery *)query
  61. // delegate:(id)delegate
  62. // didFinishSelector:(SEL)finishedSelector;
  63. //
  64. // where finishedSelector has a signature of:
  65. //
  66. // - (void)serviceTicket:(GTLRServiceTicket *)ticket
  67. // finishedWithObject:(id)object
  68. // error:(NSError *)error;
  69. //
  70. // The object passed to the completion handler or delegate method
  71. // is a subclass of GTLRObject, determined by the query method executed.
  72. @end
  73. NS_ASSUME_NONNULL_END
  74. #pragma clang diagnostic pop