1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/descriptor.proto
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cinamespace Google\Protobuf\Internal;
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType;
8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBWire;
9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField;
10ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\InputStream;
11ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil;
12ffe3c632Sopenharmony_ci
13ffe3c632Sopenharmony_ci/**
14ffe3c632Sopenharmony_ci * Describes a service.
15ffe3c632Sopenharmony_ci *
16ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.ServiceDescriptorProto</code>
17ffe3c632Sopenharmony_ci */
18ffe3c632Sopenharmony_ciclass ServiceDescriptorProto extends \Google\Protobuf\Internal\Message
19ffe3c632Sopenharmony_ci{
20ffe3c632Sopenharmony_ci    /**
21ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
22ffe3c632Sopenharmony_ci     */
23ffe3c632Sopenharmony_ci    protected $name = null;
24ffe3c632Sopenharmony_ci    /**
25ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code>
26ffe3c632Sopenharmony_ci     */
27ffe3c632Sopenharmony_ci    private $method;
28ffe3c632Sopenharmony_ci    /**
29ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.ServiceOptions options = 3;</code>
30ffe3c632Sopenharmony_ci     */
31ffe3c632Sopenharmony_ci    protected $options = null;
32ffe3c632Sopenharmony_ci
33ffe3c632Sopenharmony_ci    /**
34ffe3c632Sopenharmony_ci     * Constructor.
35ffe3c632Sopenharmony_ci     *
36ffe3c632Sopenharmony_ci     * @param array $data {
37ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
38ffe3c632Sopenharmony_ci     *
39ffe3c632Sopenharmony_ci     *     @type string $name
40ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\MethodDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $method
41ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\ServiceOptions $options
42ffe3c632Sopenharmony_ci     * }
43ffe3c632Sopenharmony_ci     */
44ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
45ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
46ffe3c632Sopenharmony_ci        parent::__construct($data);
47ffe3c632Sopenharmony_ci    }
48ffe3c632Sopenharmony_ci
49ffe3c632Sopenharmony_ci    /**
50ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
51ffe3c632Sopenharmony_ci     * @return string
52ffe3c632Sopenharmony_ci     */
53ffe3c632Sopenharmony_ci    public function getName()
54ffe3c632Sopenharmony_ci    {
55ffe3c632Sopenharmony_ci        return isset($this->name) ? $this->name : '';
56ffe3c632Sopenharmony_ci    }
57ffe3c632Sopenharmony_ci
58ffe3c632Sopenharmony_ci    public function hasName()
59ffe3c632Sopenharmony_ci    {
60ffe3c632Sopenharmony_ci        return isset($this->name);
61ffe3c632Sopenharmony_ci    }
62ffe3c632Sopenharmony_ci
63ffe3c632Sopenharmony_ci    public function clearName()
64ffe3c632Sopenharmony_ci    {
65ffe3c632Sopenharmony_ci        unset($this->name);
66ffe3c632Sopenharmony_ci    }
67ffe3c632Sopenharmony_ci
68ffe3c632Sopenharmony_ci    /**
69ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
70ffe3c632Sopenharmony_ci     * @param string $var
71ffe3c632Sopenharmony_ci     * @return $this
72ffe3c632Sopenharmony_ci     */
73ffe3c632Sopenharmony_ci    public function setName($var)
74ffe3c632Sopenharmony_ci    {
75ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
76ffe3c632Sopenharmony_ci        $this->name = $var;
77ffe3c632Sopenharmony_ci
78ffe3c632Sopenharmony_ci        return $this;
79ffe3c632Sopenharmony_ci    }
80ffe3c632Sopenharmony_ci
81ffe3c632Sopenharmony_ci    /**
82ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code>
83ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
84ffe3c632Sopenharmony_ci     */
85ffe3c632Sopenharmony_ci    public function getMethod()
86ffe3c632Sopenharmony_ci    {
87ffe3c632Sopenharmony_ci        return $this->method;
88ffe3c632Sopenharmony_ci    }
89ffe3c632Sopenharmony_ci
90ffe3c632Sopenharmony_ci    /**
91ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code>
92ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\MethodDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
93ffe3c632Sopenharmony_ci     * @return $this
94ffe3c632Sopenharmony_ci     */
95ffe3c632Sopenharmony_ci    public function setMethod($var)
96ffe3c632Sopenharmony_ci    {
97ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\MethodDescriptorProto::class);
98ffe3c632Sopenharmony_ci        $this->method = $arr;
99ffe3c632Sopenharmony_ci
100ffe3c632Sopenharmony_ci        return $this;
101ffe3c632Sopenharmony_ci    }
102ffe3c632Sopenharmony_ci
103ffe3c632Sopenharmony_ci    /**
104ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.ServiceOptions options = 3;</code>
105ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\ServiceOptions
106ffe3c632Sopenharmony_ci     */
107ffe3c632Sopenharmony_ci    public function getOptions()
108ffe3c632Sopenharmony_ci    {
109ffe3c632Sopenharmony_ci        return isset($this->options) ? $this->options : null;
110ffe3c632Sopenharmony_ci    }
111ffe3c632Sopenharmony_ci
112ffe3c632Sopenharmony_ci    public function hasOptions()
113ffe3c632Sopenharmony_ci    {
114ffe3c632Sopenharmony_ci        return isset($this->options);
115ffe3c632Sopenharmony_ci    }
116ffe3c632Sopenharmony_ci
117ffe3c632Sopenharmony_ci    public function clearOptions()
118ffe3c632Sopenharmony_ci    {
119ffe3c632Sopenharmony_ci        unset($this->options);
120ffe3c632Sopenharmony_ci    }
121ffe3c632Sopenharmony_ci
122ffe3c632Sopenharmony_ci    /**
123ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.ServiceOptions options = 3;</code>
124ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\ServiceOptions $var
125ffe3c632Sopenharmony_ci     * @return $this
126ffe3c632Sopenharmony_ci     */
127ffe3c632Sopenharmony_ci    public function setOptions($var)
128ffe3c632Sopenharmony_ci    {
129ffe3c632Sopenharmony_ci        GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ServiceOptions::class);
130ffe3c632Sopenharmony_ci        $this->options = $var;
131ffe3c632Sopenharmony_ci
132ffe3c632Sopenharmony_ci        return $this;
133ffe3c632Sopenharmony_ci    }
134ffe3c632Sopenharmony_ci
135ffe3c632Sopenharmony_ci}
136ffe3c632Sopenharmony_ci
137