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 private $value = false; 26 27 public function __construct() { 28 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 29 parent::__construct(); 30 } 31 32 /** 33 * The bool value. 34 * 35 * Generated from protobuf field <code>bool value = 1;</code> 36 * @return bool 37 */ 38 public function getValue() 39 { 40 return $this->value; 41 } 42 43 /** 44 * The bool value. 45 * 46 * Generated from protobuf field <code>bool value = 1;</code> 47 * @param bool $var 48 * @return $this 49 */ 50 public function setValue($var) 51 { 52 GPBUtil::checkBool($var); 53 $this->value = $var; 54 55 return $this; 56 } 57 58} 59 60