<?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.GetNexusOutgoingServiceResponse</code>
 */
class GetNexusOutgoingServiceResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.nexus.v1.OutgoingService service = 1;</code>
     */
    protected $service = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Nexus\V1\OutgoingService $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.OutgoingService service = 1;</code>
     * @return \Temporal\Api\Nexus\V1\OutgoingService|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.OutgoingService service = 1;</code>
     * @param \Temporal\Api\Nexus\V1\OutgoingService $var
     * @return $this
     */
    public function setService($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Nexus\V1\OutgoingService::class);
        $this->service = $var;

        return $this;
    }

}

