<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/automl/v1beta1/image.proto

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * Model deployment metadata specific to Image Object Detection.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata</code>
 */
class ImageObjectDetectionModelDeploymentMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Input only. The number of nodes to deploy the model on. A node is an
     * abstraction of a machine resource, which can handle online prediction QPS
     * as given in the model's
     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
     * Must be between 1 and 100, inclusive on both ends.
     *
     * Generated from protobuf field <code>int64 node_count = 1;</code>
     */
    private $node_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $node_count
     *           Input only. The number of nodes to deploy the model on. A node is an
     *           abstraction of a machine resource, which can handle online prediction QPS
     *           as given in the model's
     *           [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
     *           Must be between 1 and 100, inclusive on both ends.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\Image::initOnce();
        parent::__construct($data);
    }

    /**
     * Input only. The number of nodes to deploy the model on. A node is an
     * abstraction of a machine resource, which can handle online prediction QPS
     * as given in the model's
     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
     * Must be between 1 and 100, inclusive on both ends.
     *
     * Generated from protobuf field <code>int64 node_count = 1;</code>
     * @return int|string
     */
    public function getNodeCount()
    {
        return $this->node_count;
    }

    /**
     * Input only. The number of nodes to deploy the model on. A node is an
     * abstraction of a machine resource, which can handle online prediction QPS
     * as given in the model's
     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
     * Must be between 1 and 100, inclusive on both ends.
     *
     * Generated from protobuf field <code>int64 node_count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setNodeCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->node_count = $var;

        return $this;
    }

}

