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