Reference documentation and code samples for the Cloud AutoML V1 Client class Image.
A representation of an image.
Only images up to 30MB in size are supported.
Generated from protobuf messagegoogle.cloud.automl.v1.Image
Namespace
Google \ Cloud \ AutoMl \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ image_bytes
string
Image content represented as a stream of bytes. Note: As with allbytesfields, protobuffers use a pure binary representation, whereas JSON representations use base64.
↳ thumbnail_uri
string
Output only. HTTP URI to the thumbnail image.
getImageBytes
Image content represented as a stream of bytes.
Note: As with allbytesfields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Returns
Type
Description
string
hasImageBytes
setImageBytes
Image content represented as a stream of bytes.
Note: As with allbytesfields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class Image (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.Image)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.Image)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.Image)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.Image)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.Image) \nReference documentation and code samples for the Cloud AutoML V1 Client class Image.\n\nA representation of an image.\n\nOnly images up to 30MB in size are supported.\n\nGenerated from protobuf message `google.cloud.automl.v1.Image`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getImageBytes\n\nImage content represented as a stream of bytes.\n\nNote: As with all `bytes` fields, protobuffers use a pure binary\nrepresentation, whereas JSON representations use base64.\n\n### hasImageBytes\n\n### setImageBytes\n\nImage content represented as a stream of bytes.\n\nNote: As with all `bytes` fields, protobuffers use a pure binary\nrepresentation, whereas JSON representations use base64.\n\n### getThumbnailUri\n\nOutput only. HTTP URI to the thumbnail image.\n\n### setThumbnailUri\n\nOutput only. HTTP URI to the thumbnail image.\n\n### getData"]]