<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/clouddebugger/v2/debugger.proto

namespace Google\Cloud\Debugger\V2;

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

/**
 * Response for getting breakpoint information.
 *
 * Generated from protobuf message <code>google.devtools.clouddebugger.v2.GetBreakpointResponse</code>
 */
class GetBreakpointResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Complete breakpoint state.
     * The fields `id` and `location` are guaranteed to be set.
     *
     * Generated from protobuf field <code>.google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1;</code>
     */
    private $breakpoint = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Debugger\V2\Breakpoint $breakpoint
     *           Complete breakpoint state.
     *           The fields `id` and `location` are guaranteed to be set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce();
        parent::__construct($data);
    }

    /**
     * Complete breakpoint state.
     * The fields `id` and `location` are guaranteed to be set.
     *
     * Generated from protobuf field <code>.google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1;</code>
     * @return \Google\Cloud\Debugger\V2\Breakpoint|null
     */
    public function getBreakpoint()
    {
        return $this->breakpoint;
    }

    public function hasBreakpoint()
    {
        return isset($this->breakpoint);
    }

    public function clearBreakpoint()
    {
        unset($this->breakpoint);
    }

    /**
     * Complete breakpoint state.
     * The fields `id` and `location` are guaranteed to be set.
     *
     * Generated from protobuf field <code>.google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1;</code>
     * @param \Google\Cloud\Debugger\V2\Breakpoint $var
     * @return $this
     */
    public function setBreakpoint($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Breakpoint::class);
        $this->breakpoint = $var;

        return $this;
    }

}

