The Google Cloud Storage URI of the form
gs://bucket_name/object_name. Object versioning is not supported. See
Google Cloud Storage Request
URIs for more info.
A Google Cloud Storage URI of the form
gs://bucket_name/object_name. Object versioning is not supported. See
Google Cloud Storage Request
URIs for more
info.
A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both gcs_image_uri and image_uri are specified, image_uri takes
precedence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eImageSource\u003c/code\u003e class within the Google Cloud Vision v1 API, covering versions from 2.3.0 up to the latest 3.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eImageSource\u003c/code\u003e is designed to represent an external image source, which can be from Google Cloud Storage or a web URL, for use with the Vision API.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eImageSource\u003c/code\u003e has two main properties: \u003ccode\u003eGcsImageUri\u003c/code\u003e (to be replaced by \u003ccode\u003eimage_uri\u003c/code\u003e) and \u003ccode\u003eImageUri\u003c/code\u003e, both of which allow specifying the location of an image either in Google Cloud Storage or through a public HTTP/HTTPS URL.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details constructor options for the \u003ccode\u003eImageSource\u003c/code\u003e class, offering both a parameterless constructor and one that accepts another \u003ccode\u003eImageSource\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]