Debian Codegraph @

src/php/tests/qps/generated_code/Grpc/Testing/ServerArgs.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: src/proto/grpc/testing/control.proto
4
5 namespace Grpc\Testing;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * Generated from protobuf message <code>grpc.testing.ServerArgs</code>
13 */
14 class ServerArgs extends \Google\Protobuf\Internal\Message
15 {
16 protected $argtype;
17
18 /**
19 * Constructor.
20 *
21 * @param array $data {
22 * Optional. Data for populating the Message object.
23 *
24 * @type \Grpc\Testing\ServerConfig $setup
25 * @type \Grpc\Testing\Mark $mark
26 * }
27 */
28 public function __construct($data = NULL) {
29 \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
30 parent::__construct($data);
31 }
32
33 /**
34 * Generated from protobuf field <code>.grpc.testing.ServerConfig setup = 1;</code>
35 * @return \Grpc\Testing\ServerConfig
36 */
37 public function getSetup()
38 {
39 return $this->readOneof(1);
40 }
41
42 /**
43 * Generated from protobuf field <code>.grpc.testing.ServerConfig setup = 1;</code>
44 * @param \Grpc\Testing\ServerConfig $var
45 * @return $this
46 */
47 public function setSetup($var)
48 {
49 GPBUtil::checkMessage($var, \Grpc\Testing\ServerConfig::class);
50 $this->writeOneof(1, $var);
51
52 return $this;
53 }
54
55 /**
56 * Generated from protobuf field <code>.grpc.testing.Mark mark = 2;</code>
57 * @return \Grpc\Testing\Mark
58 */
59 public function getMark()
60 {
61 return $this->readOneof(2);
62 }
63
64 /**
65 * Generated from protobuf field <code>.grpc.testing.Mark mark = 2;</code>
66 * @param \Grpc\Testing\Mark $var
67 * @return $this
68 */
69 public function setMark($var)
70 {
71 GPBUtil::checkMessage($var, \Grpc\Testing\Mark::class);
72 $this->writeOneof(2, $var);
73
74 return $this;
75 }
76
77 /**
78 * @return string
79 */
80 public function getArgtype()
81 {
82 return $this->whichOneof("argtype");
83 }
84
85 }
86