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

namespace Google\Cloud\AIPlatform\V1\Probe;

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

/**
 * HttpGetAction describes an action based on HTTP Get requests.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.Probe.HttpGetAction</code>
 */
class HttpGetAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Path to access on the HTTP server.
     *
     * Generated from protobuf field <code>string path = 1;</code>
     */
    protected $path = '';
    /**
     * Number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     *
     * Generated from protobuf field <code>int32 port = 2;</code>
     */
    protected $port = 0;
    /**
     * Host name to connect to, defaults to the model serving container's IP.
     * You probably want to set "Host" in httpHeaders instead.
     *
     * Generated from protobuf field <code>string host = 3;</code>
     */
    protected $host = '';
    /**
     * Scheme to use for connecting to the host.
     * Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".
     *
     * Generated from protobuf field <code>string scheme = 4;</code>
     */
    protected $scheme = '';
    /**
     * Custom headers to set in the request. HTTP allows repeated headers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Probe.HttpHeader http_headers = 5;</code>
     */
    private $http_headers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $path
     *           Path to access on the HTTP server.
     *     @type int $port
     *           Number of the port to access on the container.
     *           Number must be in the range 1 to 65535.
     *     @type string $host
     *           Host name to connect to, defaults to the model serving container's IP.
     *           You probably want to set "Host" in httpHeaders instead.
     *     @type string $scheme
     *           Scheme to use for connecting to the host.
     *           Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".
     *     @type array<\Google\Cloud\AIPlatform\V1\Probe\HttpHeader>|\Google\Protobuf\Internal\RepeatedField $http_headers
     *           Custom headers to set in the request. HTTP allows repeated headers.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Model::initOnce();
        parent::__construct($data);
    }

    /**
     * Path to access on the HTTP server.
     *
     * Generated from protobuf field <code>string path = 1;</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Path to access on the HTTP server.
     *
     * Generated from protobuf field <code>string path = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

    /**
     * Number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     *
     * Generated from protobuf field <code>int32 port = 2;</code>
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * Number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     *
     * Generated from protobuf field <code>int32 port = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->port = $var;

        return $this;
    }

    /**
     * Host name to connect to, defaults to the model serving container's IP.
     * You probably want to set "Host" in httpHeaders instead.
     *
     * Generated from protobuf field <code>string host = 3;</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Host name to connect to, defaults to the model serving container's IP.
     * You probably want to set "Host" in httpHeaders instead.
     *
     * Generated from protobuf field <code>string host = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Scheme to use for connecting to the host.
     * Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".
     *
     * Generated from protobuf field <code>string scheme = 4;</code>
     * @return string
     */
    public function getScheme()
    {
        return $this->scheme;
    }

    /**
     * Scheme to use for connecting to the host.
     * Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".
     *
     * Generated from protobuf field <code>string scheme = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setScheme($var)
    {
        GPBUtil::checkString($var, True);
        $this->scheme = $var;

        return $this;
    }

    /**
     * Custom headers to set in the request. HTTP allows repeated headers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Probe.HttpHeader http_headers = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getHttpHeaders()
    {
        return $this->http_headers;
    }

    /**
     * Custom headers to set in the request. HTTP allows repeated headers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Probe.HttpHeader http_headers = 5;</code>
     * @param array<\Google\Cloud\AIPlatform\V1\Probe\HttpHeader>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHttpHeaders($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Probe\HttpHeader::class);
        $this->http_headers = $arr;

        return $this;
    }

}


