<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Request for LookupDiscoveredService.
 *
 * Generated from protobuf message <code>google.cloud.apphub.v1.LookupDiscoveredServiceRequest</code>
 */
class LookupDiscoveredServiceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Host project ID and location to lookup Discovered Service in.
     * Expected format: `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Required. Resource URI to find DiscoveredService for.
     * Accepts both project number and project ID and does translation when
     * needed.
     *
     * Generated from protobuf field <code>string uri = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uri = '';

    /**
     * @param string $parent Required. Host project ID and location to lookup Discovered Service in.
     *                       Expected format: `projects/{project}/locations/{location}`. Please see
     *                       {@see AppHubClient::locationName()} for help formatting this field.
     * @param string $uri    Required. Resource URI to find DiscoveredService for.
     *                       Accepts both project number and project ID and does translation when
     *                       needed.
     *
     * @return \Google\Cloud\AppHub\V1\LookupDiscoveredServiceRequest
     *
     * @experimental
     */
    public static function build(string $parent, string $uri): self
    {
        return (new self())
            ->setParent($parent)
            ->setUri($uri);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. Host project ID and location to lookup Discovered Service in.
     *           Expected format: `projects/{project}/locations/{location}`.
     *     @type string $uri
     *           Required. Resource URI to find DiscoveredService for.
     *           Accepts both project number and project ID and does translation when
     *           needed.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Host project ID and location to lookup Discovered Service in.
     * Expected format: `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. Host project ID and location to lookup Discovered Service in.
     * Expected format: `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. Resource URI to find DiscoveredService for.
     * Accepts both project number and project ID and does translation when
     * needed.
     *
     * Generated from protobuf field <code>string uri = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * Required. Resource URI to find DiscoveredService for.
     * Accepts both project number and project ID and does translation when
     * needed.
     *
     * Generated from protobuf field <code>string uri = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

