14
14
namespace Routeguide ;
15
15
16
16
use Google \Protobuf \Internal \GPBUtil ;
17
+ use Google \Protobuf \Internal \Message ;
18
+ use GPBMetadata \RouteGuide ;
17
19
18
20
/**
19
21
* A feature names something at a given point.
20
22
* If a feature could not be named, the name is empty.
21
23
*
22
24
* Generated from protobuf message <code>routeguide.Feature</code>
23
25
*/
24
- class Feature extends \ Google \ Protobuf \ Internal \ Message
26
+ class Feature extends Message
25
27
{
26
28
/**
27
29
* The name of the feature.
@@ -43,15 +45,15 @@ class Feature extends \Google\Protobuf\Internal\Message
43
45
* @param array $data {
44
46
* Optional. Data for populating the Message object.
45
47
*
46
- * @var string $name
47
- * The name of the feature
48
- * @var \Routeguide\ Point $location
49
- * The point where the feature is detected.
50
- * }
48
+ * @var string $name
49
+ * The name of the feature
50
+ * @var Point $location
51
+ * The point where the feature is detected.
52
+ * }
51
53
*/
52
54
public function __construct ($ data = null )
53
55
{
54
- \ GPBMetadata \ RouteGuide::initOnce ();
56
+ RouteGuide::initOnce ();
55
57
parent ::__construct ($ data );
56
58
}
57
59
@@ -85,7 +87,7 @@ public function setName($var)
85
87
* The point where the feature is detected.
86
88
*
87
89
* Generated from protobuf field <code>.routeguide.Point location = 2;</code>
88
- * @return \Routeguide\ Point
90
+ * @return Point
89
91
*/
90
92
public function getLocation ()
91
93
{
@@ -96,12 +98,12 @@ public function getLocation()
96
98
* The point where the feature is detected.
97
99
*
98
100
* Generated from protobuf field <code>.routeguide.Point location = 2;</code>
99
- * @param \Routeguide\ Point $var
101
+ * @param Point $var
100
102
* @return $this
101
103
*/
102
104
public function setLocation ($ var )
103
105
{
104
- GPBUtil::checkMessage ($ var , \ Routeguide \ Point::class);
106
+ GPBUtil::checkMessage ($ var , Point::class);
105
107
$ this ->location = $ var ;
106
108
107
109
return $ this ;
0 commit comments