<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/vision/v1/image_annotator.proto

namespace Google\Cloud\Vision\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * External image source (Google Cloud Storage image location).
 *
 * Generated from protobuf message <code>google.cloud.vision.v1.ImageSource</code>
 */
class ImageSource extends \Google\Protobuf\Internal\Message
{
    /**
     * 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](https://cloud.google.com/storage/docs/reference-uris)).
     * NOTE: Cloud Storage object versioning is not supported.
     *
     * Generated from protobuf field <code>string gcs_image_uri = 1;</code>
     */
    private $gcs_image_uri = '';
    /**
     * 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](https://cloud.google.com/storage/docs/reference-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 <code>string image_uri = 2;</code>
     */
    private $image_uri = '';

    public function __construct() {
        \GPBMetadata\Google\Cloud\Vision\V1\ImageAnnotator::initOnce();
        parent::__construct();
    }

    /**
     * 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](https://cloud.google.com/storage/docs/reference-uris)).
     * NOTE: Cloud Storage object versioning is not supported.
     *
     * Generated from protobuf field <code>string gcs_image_uri = 1;</code>
     * @return string
     */
    public function getGcsImageUri()
    {
        return $this->gcs_image_uri;
    }

    /**
     * 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](https://cloud.google.com/storage/docs/reference-uris)).
     * NOTE: Cloud Storage object versioning is not supported.
     *
     * Generated from protobuf field <code>string gcs_image_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setGcsImageUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->gcs_image_uri = $var;

        return $this;
    }

    /**
     * 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](https://cloud.google.com/storage/docs/reference-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 <code>string image_uri = 2;</code>
     * @return string
     */
    public function getImageUri()
    {
        return $this->image_uri;
    }

    /**
     * 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](https://cloud.google.com/storage/docs/reference-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 <code>string image_uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setImageUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->image_uri = $var;

        return $this;
    }

}

