<?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;

/**
 * A `Property` consists of a user-supplied name/value pair.
 *
 * Generated from protobuf message <code>google.cloud.vision.v1.Property</code>
 */
class Property extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the property.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Value of the property.
     *
     * Generated from protobuf field <code>string value = 2;</code>
     */
    private $value = '';
    /**
     * Value of numeric properties.
     *
     * Generated from protobuf field <code>uint64 uint64_value = 3;</code>
     */
    private $uint64_value = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Name of the property.
     *     @type string $value
     *           Value of the property.
     *     @type int|string $uint64_value
     *           Value of numeric properties.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vision\V1\ImageAnnotator::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the property.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the property.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Value of the property.
     *
     * Generated from protobuf field <code>string value = 2;</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Value of the property.
     *
     * Generated from protobuf field <code>string value = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

    /**
     * Value of numeric properties.
     *
     * Generated from protobuf field <code>uint64 uint64_value = 3;</code>
     * @return int|string
     */
    public function getUint64Value()
    {
        return $this->uint64_value;
    }

    /**
     * Value of numeric properties.
     *
     * Generated from protobuf field <code>uint64 uint64_value = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUint64Value($var)
    {
        GPBUtil::checkUint64($var);
        $this->uint64_value = $var;

        return $this;
    }

}

