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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Represents a network port in a container.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.Port</code>
 */
class Port extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of the port to expose on the pod's IP address.
     * Must be a valid port number, between 1 and 65535 inclusive.
     *
     * Generated from protobuf field <code>int32 container_port = 3;</code>
     */
    private $container_port = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $container_port
     *           The number of the port to expose on the pod's IP address.
     *           Must be a valid port number, between 1 and 65535 inclusive.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Model::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of the port to expose on the pod's IP address.
     * Must be a valid port number, between 1 and 65535 inclusive.
     *
     * Generated from protobuf field <code>int32 container_port = 3;</code>
     * @return int
     */
    public function getContainerPort()
    {
        return $this->container_port;
    }

    /**
     * The number of the port to expose on the pod's IP address.
     * Must be a valid port number, between 1 and 65535 inclusive.
     *
     * Generated from protobuf field <code>int32 container_port = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setContainerPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->container_port = $var;

        return $this;
    }

}

