<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/operatorservice/v1/request_response.proto

namespace Temporal\Api\Operatorservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.operatorservice.v1.CreateNexusEndpointRequest</code>
 */
class CreateNexusEndpointRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Endpoint definition to create.
     *
     * Generated from protobuf field <code>.temporal.api.nexus.v1.EndpointSpec spec = 1;</code>
     */
    protected $spec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Nexus\V1\EndpointSpec $spec
     *           Endpoint definition to create.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Endpoint definition to create.
     *
     * Generated from protobuf field <code>.temporal.api.nexus.v1.EndpointSpec spec = 1;</code>
     * @return \Temporal\Api\Nexus\V1\EndpointSpec|null
     */
    public function getSpec()
    {
        return $this->spec;
    }

    public function hasSpec()
    {
        return isset($this->spec);
    }

    public function clearSpec()
    {
        unset($this->spec);
    }

    /**
     * Endpoint definition to create.
     *
     * Generated from protobuf field <code>.temporal.api.nexus.v1.EndpointSpec spec = 1;</code>
     * @param \Temporal\Api\Nexus\V1\EndpointSpec $var
     * @return $this
     */
    public function setSpec($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Nexus\V1\EndpointSpec::class);
        $this->spec = $var;

        return $this;
    }

}

