xref: /aosp_15_r20/external/grpc-grpc/src/php/tests/qps/generated_code/Grpc/Testing/SecurityParams.php (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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 * presence of SecurityParams implies use of TLS
13 *
14 * Generated from protobuf message <code>grpc.testing.SecurityParams</code>
15 */
16class SecurityParams extends \Google\Protobuf\Internal\Message
17{
18    /**
19     * Generated from protobuf field <code>bool use_test_ca = 1;</code>
20     */
21    protected $use_test_ca = false;
22    /**
23     * Generated from protobuf field <code>string server_host_override = 2;</code>
24     */
25    protected $server_host_override = '';
26    /**
27     * Generated from protobuf field <code>string cred_type = 3;</code>
28     */
29    protected $cred_type = '';
30
31    /**
32     * Constructor.
33     *
34     * @param array $data {
35     *     Optional. Data for populating the Message object.
36     *
37     *     @type bool $use_test_ca
38     *     @type string $server_host_override
39     *     @type string $cred_type
40     * }
41     */
42    public function __construct($data = NULL) {
43        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
44        parent::__construct($data);
45    }
46
47    /**
48     * Generated from protobuf field <code>bool use_test_ca = 1;</code>
49     * @return bool
50     */
51    public function getUseTestCa()
52    {
53        return $this->use_test_ca;
54    }
55
56    /**
57     * Generated from protobuf field <code>bool use_test_ca = 1;</code>
58     * @param bool $var
59     * @return $this
60     */
61    public function setUseTestCa($var)
62    {
63        GPBUtil::checkBool($var);
64        $this->use_test_ca = $var;
65
66        return $this;
67    }
68
69    /**
70     * Generated from protobuf field <code>string server_host_override = 2;</code>
71     * @return string
72     */
73    public function getServerHostOverride()
74    {
75        return $this->server_host_override;
76    }
77
78    /**
79     * Generated from protobuf field <code>string server_host_override = 2;</code>
80     * @param string $var
81     * @return $this
82     */
83    public function setServerHostOverride($var)
84    {
85        GPBUtil::checkString($var, True);
86        $this->server_host_override = $var;
87
88        return $this;
89    }
90
91    /**
92     * Generated from protobuf field <code>string cred_type = 3;</code>
93     * @return string
94     */
95    public function getCredType()
96    {
97        return $this->cred_type;
98    }
99
100    /**
101     * Generated from protobuf field <code>string cred_type = 3;</code>
102     * @param string $var
103     * @return $this
104     */
105    public function setCredType($var)
106    {
107        GPBUtil::checkString($var, True);
108        $this->cred_type = $var;
109
110        return $this;
111    }
112
113}
114
115