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

namespace Google\Cloud\AppHub\V1;

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

/**
 * Response for LookupServiceProjectAttachment.
 *
 * Generated from protobuf message <code>google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse</code>
 */
class LookupServiceProjectAttachmentResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Service project attachment for a project if exists, empty otherwise.
     *
     * Generated from protobuf field <code>.google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1;</code>
     */
    protected $service_project_attachment = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AppHub\V1\ServiceProjectAttachment $service_project_attachment
     *           Service project attachment for a project if exists, empty otherwise.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce();
        parent::__construct($data);
    }

    /**
     * Service project attachment for a project if exists, empty otherwise.
     *
     * Generated from protobuf field <code>.google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1;</code>
     * @return \Google\Cloud\AppHub\V1\ServiceProjectAttachment|null
     */
    public function getServiceProjectAttachment()
    {
        return $this->service_project_attachment;
    }

    public function hasServiceProjectAttachment()
    {
        return isset($this->service_project_attachment);
    }

    public function clearServiceProjectAttachment()
    {
        unset($this->service_project_attachment);
    }

    /**
     * Service project attachment for a project if exists, empty otherwise.
     *
     * Generated from protobuf field <code>.google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1;</code>
     * @param \Google\Cloud\AppHub\V1\ServiceProjectAttachment $var
     * @return $this
     */
    public function setServiceProjectAttachment($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceProjectAttachment::class);
        $this->service_project_attachment = $var;

        return $this;
    }

}

