class ImageSource extends Message

External image source (Google Cloud Storage image location).

Protobuf type Google\Cloud\Vision\V1\ImageSource

Methods

__construct()

No description

string
getGcsImageUri()

NOTE: For new code image_uri below is preferred.

setGcsImageUri(string $var)

NOTE: For new code image_uri below is preferred.

string
getImageUri()

Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs).

setImageUri(string $var)

Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs).

Details

at line 45
__construct()

at line 61
string getGcsImageUri()

NOTE: For new code image_uri below is preferred.

Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs). NOTE: Cloud Storage object versioning is not supported.

Generated from protobuf field string gcs_image_uri = 1;

Return Value

string

at line 77
setGcsImageUri(string $var)

NOTE: For new code image_uri below is preferred.

Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs). NOTE: Cloud Storage object versioning is not supported.

Generated from protobuf field string gcs_image_uri = 1;

Parameters

string $var

at line 98
string getImageUri()

Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs).

NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy gcs_image_uri above. When both gcs_image_uri and image_uri are specified, image_uri takes precedence.

Generated from protobuf field string image_uri = 2;

Return Value

string

at line 118
setImageUri(string $var)

Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: gs://bucket_name/object_name (for details, see Google Cloud Storage Request URIs).

NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy gcs_image_uri above. When both gcs_image_uri and image_uri are specified, image_uri takes precedence.

Generated from protobuf field string image_uri = 2;

Parameters

string $var