• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/messages.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * TODO(dgq): Go back to using well-known types once
13 * https://github.com/grpc/grpc/issues/6980 has been fixed.
14 * import "google/protobuf/wrappers.proto";
15 *
16 * Generated from protobuf message <code>grpc.testing.BoolValue</code>
17 */
18class BoolValue extends \Google\Protobuf\Internal\Message
19{
20    /**
21     * The bool value.
22     *
23     * Generated from protobuf field <code>bool value = 1;</code>
24     */
25    protected $value = false;
26
27    /**
28     * Constructor.
29     *
30     * @param array $data {
31     *     Optional. Data for populating the Message object.
32     *
33     *     @type bool $value
34     *           The bool value.
35     * }
36     */
37    public function __construct($data = NULL) {
38        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
39        parent::__construct($data);
40    }
41
42    /**
43     * The bool value.
44     *
45     * Generated from protobuf field <code>bool value = 1;</code>
46     * @return bool
47     */
48    public function getValue()
49    {
50        return $this->value;
51    }
52
53    /**
54     * The bool value.
55     *
56     * Generated from protobuf field <code>bool value = 1;</code>
57     * @param bool $var
58     * @return $this
59     */
60    public function setValue($var)
61    {
62        GPBUtil::checkBool($var);
63        $this->value = $var;
64
65        return $this;
66    }
67
68}
69
70