• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: google/protobuf/descriptor.proto
4
5namespace Google\Protobuf\Internal;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\GPBWire;
9use Google\Protobuf\Internal\RepeatedField;
10use Google\Protobuf\Internal\InputStream;
11use Google\Protobuf\Internal\GPBUtil;
12
13/**
14 * Generated from protobuf message <code>google.protobuf.ServiceOptions</code>
15 */
16class ServiceOptions extends \Google\Protobuf\Internal\Message
17{
18    /**
19     * Is this service deprecated?
20     * Depending on the target platform, this can emit Deprecated annotations
21     * for the service, or it will be completely ignored; in the very least,
22     * this is a formalization for deprecating services.
23     *
24     * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
25     */
26    private $deprecated = false;
27    private $has_deprecated = false;
28    /**
29     * The parser stores options it doesn't recognize here. See above.
30     *
31     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
32     */
33    private $uninterpreted_option;
34    private $has_uninterpreted_option = false;
35
36    /**
37     * Constructor.
38     *
39     * @param array $data {
40     *     Optional. Data for populating the Message object.
41     *
42     *     @type bool $deprecated
43     *           Is this service deprecated?
44     *           Depending on the target platform, this can emit Deprecated annotations
45     *           for the service, or it will be completely ignored; in the very least,
46     *           this is a formalization for deprecating services.
47     *     @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
48     *           The parser stores options it doesn't recognize here. See above.
49     * }
50     */
51    public function __construct($data = NULL) {
52        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
53        parent::__construct($data);
54    }
55
56    /**
57     * Is this service deprecated?
58     * Depending on the target platform, this can emit Deprecated annotations
59     * for the service, or it will be completely ignored; in the very least,
60     * this is a formalization for deprecating services.
61     *
62     * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
63     * @return bool
64     */
65    public function getDeprecated()
66    {
67        return $this->deprecated;
68    }
69
70    /**
71     * Is this service deprecated?
72     * Depending on the target platform, this can emit Deprecated annotations
73     * for the service, or it will be completely ignored; in the very least,
74     * this is a formalization for deprecating services.
75     *
76     * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
77     * @param bool $var
78     * @return $this
79     */
80    public function setDeprecated($var)
81    {
82        GPBUtil::checkBool($var);
83        $this->deprecated = $var;
84        $this->has_deprecated = true;
85
86        return $this;
87    }
88
89    public function hasDeprecated()
90    {
91        return $this->has_deprecated;
92    }
93
94    /**
95     * The parser stores options it doesn't recognize here. See above.
96     *
97     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
98     * @return \Google\Protobuf\Internal\RepeatedField
99     */
100    public function getUninterpretedOption()
101    {
102        return $this->uninterpreted_option;
103    }
104
105    /**
106     * The parser stores options it doesn't recognize here. See above.
107     *
108     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
109     * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
110     * @return $this
111     */
112    public function setUninterpretedOption($var)
113    {
114        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
115        $this->uninterpreted_option = $arr;
116        $this->has_uninterpreted_option = true;
117
118        return $this;
119    }
120
121    public function hasUninterpretedOption()
122    {
123        return $this->has_uninterpreted_option;
124    }
125
126}
127
128