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

namespace Temporal\Api\Operatorservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.operatorservice.v1.GetNexusIncomingServiceResponse</code>
 */
class GetNexusIncomingServiceResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.nexus.v1.IncomingService service = 1;</code>
     */
    protected $service = null;

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

    /**
     * Generated from protobuf field <code>.temporal.api.nexus.v1.IncomingService service = 1;</code>
     * @return \Temporal\Api\Nexus\V1\IncomingService|null
     */
    public function getService()
    {
        return $this->service;
    }

    public function hasService()
    {
        return isset($this->service);
    }

    public function clearService()
    {
        unset($this->service);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.nexus.v1.IncomingService service = 1;</code>
     * @param \Temporal\Api\Nexus\V1\IncomingService $var
     * @return $this
     */
    public function setService($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Nexus\V1\IncomingService::class);
        $this->service = $var;

        return $this;
    }

}

