1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/api.proto
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cinamespace Google\Protobuf;
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType;
8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField;
9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil;
10ffe3c632Sopenharmony_ci
11ffe3c632Sopenharmony_ci/**
12ffe3c632Sopenharmony_ci * Method represents a method of an API interface.
13ffe3c632Sopenharmony_ci *
14ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Method</code>
15ffe3c632Sopenharmony_ci */
16ffe3c632Sopenharmony_ciclass Method extends \Google\Protobuf\Internal\Message
17ffe3c632Sopenharmony_ci{
18ffe3c632Sopenharmony_ci    /**
19ffe3c632Sopenharmony_ci     * The simple name of this method.
20ffe3c632Sopenharmony_ci     *
21ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
22ffe3c632Sopenharmony_ci     */
23ffe3c632Sopenharmony_ci    private $name = '';
24ffe3c632Sopenharmony_ci    /**
25ffe3c632Sopenharmony_ci     * A URL of the input message type.
26ffe3c632Sopenharmony_ci     *
27ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string request_type_url = 2;</code>
28ffe3c632Sopenharmony_ci     */
29ffe3c632Sopenharmony_ci    private $request_type_url = '';
30ffe3c632Sopenharmony_ci    /**
31ffe3c632Sopenharmony_ci     * If true, the request is streamed.
32ffe3c632Sopenharmony_ci     *
33ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool request_streaming = 3;</code>
34ffe3c632Sopenharmony_ci     */
35ffe3c632Sopenharmony_ci    private $request_streaming = false;
36ffe3c632Sopenharmony_ci    /**
37ffe3c632Sopenharmony_ci     * The URL of the output message type.
38ffe3c632Sopenharmony_ci     *
39ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string response_type_url = 4;</code>
40ffe3c632Sopenharmony_ci     */
41ffe3c632Sopenharmony_ci    private $response_type_url = '';
42ffe3c632Sopenharmony_ci    /**
43ffe3c632Sopenharmony_ci     * If true, the response is streamed.
44ffe3c632Sopenharmony_ci     *
45ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool response_streaming = 5;</code>
46ffe3c632Sopenharmony_ci     */
47ffe3c632Sopenharmony_ci    private $response_streaming = false;
48ffe3c632Sopenharmony_ci    /**
49ffe3c632Sopenharmony_ci     * Any metadata attached to the method.
50ffe3c632Sopenharmony_ci     *
51ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
52ffe3c632Sopenharmony_ci     */
53ffe3c632Sopenharmony_ci    private $options;
54ffe3c632Sopenharmony_ci    /**
55ffe3c632Sopenharmony_ci     * The source syntax of this method.
56ffe3c632Sopenharmony_ci     *
57ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
58ffe3c632Sopenharmony_ci     */
59ffe3c632Sopenharmony_ci    private $syntax = 0;
60ffe3c632Sopenharmony_ci
61ffe3c632Sopenharmony_ci    /**
62ffe3c632Sopenharmony_ci     * Constructor.
63ffe3c632Sopenharmony_ci     *
64ffe3c632Sopenharmony_ci     * @param array $data {
65ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
66ffe3c632Sopenharmony_ci     *
67ffe3c632Sopenharmony_ci     *     @type string $name
68ffe3c632Sopenharmony_ci     *           The simple name of this method.
69ffe3c632Sopenharmony_ci     *     @type string $request_type_url
70ffe3c632Sopenharmony_ci     *           A URL of the input message type.
71ffe3c632Sopenharmony_ci     *     @type bool $request_streaming
72ffe3c632Sopenharmony_ci     *           If true, the request is streamed.
73ffe3c632Sopenharmony_ci     *     @type string $response_type_url
74ffe3c632Sopenharmony_ci     *           The URL of the output message type.
75ffe3c632Sopenharmony_ci     *     @type bool $response_streaming
76ffe3c632Sopenharmony_ci     *           If true, the response is streamed.
77ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $options
78ffe3c632Sopenharmony_ci     *           Any metadata attached to the method.
79ffe3c632Sopenharmony_ci     *     @type int $syntax
80ffe3c632Sopenharmony_ci     *           The source syntax of this method.
81ffe3c632Sopenharmony_ci     * }
82ffe3c632Sopenharmony_ci     */
83ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
84ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Api::initOnce();
85ffe3c632Sopenharmony_ci        parent::__construct($data);
86ffe3c632Sopenharmony_ci    }
87ffe3c632Sopenharmony_ci
88ffe3c632Sopenharmony_ci    /**
89ffe3c632Sopenharmony_ci     * The simple name of this method.
90ffe3c632Sopenharmony_ci     *
91ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
92ffe3c632Sopenharmony_ci     * @return string
93ffe3c632Sopenharmony_ci     */
94ffe3c632Sopenharmony_ci    public function getName()
95ffe3c632Sopenharmony_ci    {
96ffe3c632Sopenharmony_ci        return $this->name;
97ffe3c632Sopenharmony_ci    }
98ffe3c632Sopenharmony_ci
99ffe3c632Sopenharmony_ci    /**
100ffe3c632Sopenharmony_ci     * The simple name of this method.
101ffe3c632Sopenharmony_ci     *
102ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
103ffe3c632Sopenharmony_ci     * @param string $var
104ffe3c632Sopenharmony_ci     * @return $this
105ffe3c632Sopenharmony_ci     */
106ffe3c632Sopenharmony_ci    public function setName($var)
107ffe3c632Sopenharmony_ci    {
108ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
109ffe3c632Sopenharmony_ci        $this->name = $var;
110ffe3c632Sopenharmony_ci
111ffe3c632Sopenharmony_ci        return $this;
112ffe3c632Sopenharmony_ci    }
113ffe3c632Sopenharmony_ci
114ffe3c632Sopenharmony_ci    /**
115ffe3c632Sopenharmony_ci     * A URL of the input message type.
116ffe3c632Sopenharmony_ci     *
117ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string request_type_url = 2;</code>
118ffe3c632Sopenharmony_ci     * @return string
119ffe3c632Sopenharmony_ci     */
120ffe3c632Sopenharmony_ci    public function getRequestTypeUrl()
121ffe3c632Sopenharmony_ci    {
122ffe3c632Sopenharmony_ci        return $this->request_type_url;
123ffe3c632Sopenharmony_ci    }
124ffe3c632Sopenharmony_ci
125ffe3c632Sopenharmony_ci    /**
126ffe3c632Sopenharmony_ci     * A URL of the input message type.
127ffe3c632Sopenharmony_ci     *
128ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string request_type_url = 2;</code>
129ffe3c632Sopenharmony_ci     * @param string $var
130ffe3c632Sopenharmony_ci     * @return $this
131ffe3c632Sopenharmony_ci     */
132ffe3c632Sopenharmony_ci    public function setRequestTypeUrl($var)
133ffe3c632Sopenharmony_ci    {
134ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
135ffe3c632Sopenharmony_ci        $this->request_type_url = $var;
136ffe3c632Sopenharmony_ci
137ffe3c632Sopenharmony_ci        return $this;
138ffe3c632Sopenharmony_ci    }
139ffe3c632Sopenharmony_ci
140ffe3c632Sopenharmony_ci    /**
141ffe3c632Sopenharmony_ci     * If true, the request is streamed.
142ffe3c632Sopenharmony_ci     *
143ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool request_streaming = 3;</code>
144ffe3c632Sopenharmony_ci     * @return bool
145ffe3c632Sopenharmony_ci     */
146ffe3c632Sopenharmony_ci    public function getRequestStreaming()
147ffe3c632Sopenharmony_ci    {
148ffe3c632Sopenharmony_ci        return $this->request_streaming;
149ffe3c632Sopenharmony_ci    }
150ffe3c632Sopenharmony_ci
151ffe3c632Sopenharmony_ci    /**
152ffe3c632Sopenharmony_ci     * If true, the request is streamed.
153ffe3c632Sopenharmony_ci     *
154ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool request_streaming = 3;</code>
155ffe3c632Sopenharmony_ci     * @param bool $var
156ffe3c632Sopenharmony_ci     * @return $this
157ffe3c632Sopenharmony_ci     */
158ffe3c632Sopenharmony_ci    public function setRequestStreaming($var)
159ffe3c632Sopenharmony_ci    {
160ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
161ffe3c632Sopenharmony_ci        $this->request_streaming = $var;
162ffe3c632Sopenharmony_ci
163ffe3c632Sopenharmony_ci        return $this;
164ffe3c632Sopenharmony_ci    }
165ffe3c632Sopenharmony_ci
166ffe3c632Sopenharmony_ci    /**
167ffe3c632Sopenharmony_ci     * The URL of the output message type.
168ffe3c632Sopenharmony_ci     *
169ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string response_type_url = 4;</code>
170ffe3c632Sopenharmony_ci     * @return string
171ffe3c632Sopenharmony_ci     */
172ffe3c632Sopenharmony_ci    public function getResponseTypeUrl()
173ffe3c632Sopenharmony_ci    {
174ffe3c632Sopenharmony_ci        return $this->response_type_url;
175ffe3c632Sopenharmony_ci    }
176ffe3c632Sopenharmony_ci
177ffe3c632Sopenharmony_ci    /**
178ffe3c632Sopenharmony_ci     * The URL of the output message type.
179ffe3c632Sopenharmony_ci     *
180ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string response_type_url = 4;</code>
181ffe3c632Sopenharmony_ci     * @param string $var
182ffe3c632Sopenharmony_ci     * @return $this
183ffe3c632Sopenharmony_ci     */
184ffe3c632Sopenharmony_ci    public function setResponseTypeUrl($var)
185ffe3c632Sopenharmony_ci    {
186ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
187ffe3c632Sopenharmony_ci        $this->response_type_url = $var;
188ffe3c632Sopenharmony_ci
189ffe3c632Sopenharmony_ci        return $this;
190ffe3c632Sopenharmony_ci    }
191ffe3c632Sopenharmony_ci
192ffe3c632Sopenharmony_ci    /**
193ffe3c632Sopenharmony_ci     * If true, the response is streamed.
194ffe3c632Sopenharmony_ci     *
195ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool response_streaming = 5;</code>
196ffe3c632Sopenharmony_ci     * @return bool
197ffe3c632Sopenharmony_ci     */
198ffe3c632Sopenharmony_ci    public function getResponseStreaming()
199ffe3c632Sopenharmony_ci    {
200ffe3c632Sopenharmony_ci        return $this->response_streaming;
201ffe3c632Sopenharmony_ci    }
202ffe3c632Sopenharmony_ci
203ffe3c632Sopenharmony_ci    /**
204ffe3c632Sopenharmony_ci     * If true, the response is streamed.
205ffe3c632Sopenharmony_ci     *
206ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>bool response_streaming = 5;</code>
207ffe3c632Sopenharmony_ci     * @param bool $var
208ffe3c632Sopenharmony_ci     * @return $this
209ffe3c632Sopenharmony_ci     */
210ffe3c632Sopenharmony_ci    public function setResponseStreaming($var)
211ffe3c632Sopenharmony_ci    {
212ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
213ffe3c632Sopenharmony_ci        $this->response_streaming = $var;
214ffe3c632Sopenharmony_ci
215ffe3c632Sopenharmony_ci        return $this;
216ffe3c632Sopenharmony_ci    }
217ffe3c632Sopenharmony_ci
218ffe3c632Sopenharmony_ci    /**
219ffe3c632Sopenharmony_ci     * Any metadata attached to the method.
220ffe3c632Sopenharmony_ci     *
221ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
222ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
223ffe3c632Sopenharmony_ci     */
224ffe3c632Sopenharmony_ci    public function getOptions()
225ffe3c632Sopenharmony_ci    {
226ffe3c632Sopenharmony_ci        return $this->options;
227ffe3c632Sopenharmony_ci    }
228ffe3c632Sopenharmony_ci
229ffe3c632Sopenharmony_ci    /**
230ffe3c632Sopenharmony_ci     * Any metadata attached to the method.
231ffe3c632Sopenharmony_ci     *
232ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
233ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $var
234ffe3c632Sopenharmony_ci     * @return $this
235ffe3c632Sopenharmony_ci     */
236ffe3c632Sopenharmony_ci    public function setOptions($var)
237ffe3c632Sopenharmony_ci    {
238ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class);
239ffe3c632Sopenharmony_ci        $this->options = $arr;
240ffe3c632Sopenharmony_ci
241ffe3c632Sopenharmony_ci        return $this;
242ffe3c632Sopenharmony_ci    }
243ffe3c632Sopenharmony_ci
244ffe3c632Sopenharmony_ci    /**
245ffe3c632Sopenharmony_ci     * The source syntax of this method.
246ffe3c632Sopenharmony_ci     *
247ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
248ffe3c632Sopenharmony_ci     * @return int
249ffe3c632Sopenharmony_ci     */
250ffe3c632Sopenharmony_ci    public function getSyntax()
251ffe3c632Sopenharmony_ci    {
252ffe3c632Sopenharmony_ci        return $this->syntax;
253ffe3c632Sopenharmony_ci    }
254ffe3c632Sopenharmony_ci
255ffe3c632Sopenharmony_ci    /**
256ffe3c632Sopenharmony_ci     * The source syntax of this method.
257ffe3c632Sopenharmony_ci     *
258ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
259ffe3c632Sopenharmony_ci     * @param int $var
260ffe3c632Sopenharmony_ci     * @return $this
261ffe3c632Sopenharmony_ci     */
262ffe3c632Sopenharmony_ci    public function setSyntax($var)
263ffe3c632Sopenharmony_ci    {
264ffe3c632Sopenharmony_ci        GPBUtil::checkEnum($var, \Google\Protobuf\Syntax::class);
265ffe3c632Sopenharmony_ci        $this->syntax = $var;
266ffe3c632Sopenharmony_ci
267ffe3c632Sopenharmony_ci        return $this;
268ffe3c632Sopenharmony_ci    }
269ffe3c632Sopenharmony_ci
270ffe3c632Sopenharmony_ci}
271ffe3c632Sopenharmony_ci
272