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

namespace Google\Cloud\ApigeeConnect\V1;

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

/**
 * gRPC response payload for tether.
 *
 * Generated from protobuf message <code>google.cloud.apigeeconnect.v1.EgressResponse</code>
 */
class EgressResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Unique identifier for the response. Matches the EgressRequest's id.
     *
     * Generated from protobuf field <code>string id = 1;</code>
     */
    private $id = '';
    /**
     * HttpResponse.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;</code>
     */
    private $http_response = null;
    /**
     * Errors from application when handling the http request.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 3;</code>
     */
    private $status = null;
    /**
     * GCP Project.
     * Format: `projects/{project_number}`.
     *
     * Generated from protobuf field <code>string project = 4;</code>
     */
    private $project = '';
    /**
     * Unique identifier for clients to trace their request/response. Matches the
     * EgressRequest's trace id
     *
     * Generated from protobuf field <code>string trace_id = 5;</code>
     */
    private $trace_id = '';
    /**
     * Tether Endpoint.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;</code>
     */
    private $endpoint = 0;
    /**
     * Name is the full resource path of endpoint.
     * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
     *
     * Generated from protobuf field <code>string name = 7;</code>
     */
    private $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Unique identifier for the response. Matches the EgressRequest's id.
     *     @type \Google\Cloud\ApigeeConnect\V1\HttpResponse $http_response
     *           HttpResponse.
     *     @type \Google\Rpc\Status $status
     *           Errors from application when handling the http request.
     *     @type string $project
     *           GCP Project.
     *           Format: `projects/{project_number}`.
     *     @type string $trace_id
     *           Unique identifier for clients to trace their request/response. Matches the
     *           EgressRequest's trace id
     *     @type int $endpoint
     *           Tether Endpoint.
     *     @type string $name
     *           Name is the full resource path of endpoint.
     *           Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce();
        parent::__construct($data);
    }

    /**
     * Unique identifier for the response. Matches the EgressRequest's id.
     *
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Unique identifier for the response. Matches the EgressRequest's id.
     *
     * Generated from protobuf field <code>string id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * HttpResponse.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;</code>
     * @return \Google\Cloud\ApigeeConnect\V1\HttpResponse|null
     */
    public function getHttpResponse()
    {
        return $this->http_response;
    }

    public function hasHttpResponse()
    {
        return isset($this->http_response);
    }

    public function clearHttpResponse()
    {
        unset($this->http_response);
    }

    /**
     * HttpResponse.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;</code>
     * @param \Google\Cloud\ApigeeConnect\V1\HttpResponse $var
     * @return $this
     */
    public function setHttpResponse($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\HttpResponse::class);
        $this->http_response = $var;

        return $this;
    }

    /**
     * Errors from application when handling the http request.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 3;</code>
     * @return \Google\Rpc\Status|null
     */
    public function getStatus()
    {
        return $this->status;
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    /**
     * Errors from application when handling the http request.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 3;</code>
     * @param \Google\Rpc\Status $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Rpc\Status::class);
        $this->status = $var;

        return $this;
    }

    /**
     * GCP Project.
     * Format: `projects/{project_number}`.
     *
     * Generated from protobuf field <code>string project = 4;</code>
     * @return string
     */
    public function getProject()
    {
        return $this->project;
    }

    /**
     * GCP Project.
     * Format: `projects/{project_number}`.
     *
     * Generated from protobuf field <code>string project = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setProject($var)
    {
        GPBUtil::checkString($var, True);
        $this->project = $var;

        return $this;
    }

    /**
     * Unique identifier for clients to trace their request/response. Matches the
     * EgressRequest's trace id
     *
     * Generated from protobuf field <code>string trace_id = 5;</code>
     * @return string
     */
    public function getTraceId()
    {
        return $this->trace_id;
    }

    /**
     * Unique identifier for clients to trace their request/response. Matches the
     * EgressRequest's trace id
     *
     * Generated from protobuf field <code>string trace_id = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setTraceId($var)
    {
        GPBUtil::checkString($var, True);
        $this->trace_id = $var;

        return $this;
    }

    /**
     * Tether Endpoint.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;</code>
     * @return int
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * Tether Endpoint.
     *
     * Generated from protobuf field <code>.google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setEndpoint($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ApigeeConnect\V1\TetherEndpoint::class);
        $this->endpoint = $var;

        return $this;
    }

    /**
     * Name is the full resource path of endpoint.
     * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
     *
     * Generated from protobuf field <code>string name = 7;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name is the full resource path of endpoint.
     * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
     *
     * Generated from protobuf field <code>string name = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

