blob: 3e7214a1ebe8a9e1b820114d50c2b0113ddc6c0d [file] [log] [blame]
Jakob Buchgraber8cc62f72018-07-09 16:45:04 +02001<?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 public function __construct() {
37 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
38 parent::__construct();
39 }
40
41 /**
42 * Is this service deprecated?
43 * Depending on the target platform, this can emit Deprecated annotations
44 * for the service, or it will be completely ignored; in the very least,
45 * this is a formalization for deprecating services.
46 *
47 * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
48 * @return bool
49 */
50 public function getDeprecated()
51 {
52 return $this->deprecated;
53 }
54
55 /**
56 * Is this service deprecated?
57 * Depending on the target platform, this can emit Deprecated annotations
58 * for the service, or it will be completely ignored; in the very least,
59 * this is a formalization for deprecating services.
60 *
61 * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
62 * @param bool $var
63 * @return $this
64 */
65 public function setDeprecated($var)
66 {
67 GPBUtil::checkBool($var);
68 $this->deprecated = $var;
69 $this->has_deprecated = true;
70
71 return $this;
72 }
73
74 public function hasDeprecated()
75 {
76 return $this->has_deprecated;
77 }
78
79 /**
80 * The parser stores options it doesn't recognize here. See above.
81 *
82 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
83 * @return \Google\Protobuf\Internal\RepeatedField
84 */
85 public function getUninterpretedOption()
86 {
87 return $this->uninterpreted_option;
88 }
89
90 /**
91 * The parser stores options it doesn't recognize here. See above.
92 *
93 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
94 * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
95 * @return $this
96 */
97 public function setUninterpretedOption($var)
98 {
99 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
100 $this->uninterpreted_option = $arr;
101 $this->has_uninterpreted_option = true;
102
103 return $this;
104 }
105
106 public function hasUninterpretedOption()
107 {
108 return $this->has_uninterpreted_option;
109 }
110
111}
112