File: RouteSummary.php

package info (click to toggle)
grpc 1.51.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 76,144 kB
  • sloc: cpp: 361,866; python: 72,206; ansic: 37,778; objc: 12,434; ruby: 11,521; sh: 7,652; php: 7,615; makefile: 3,481; xml: 3,246; cs: 1,836; javascript: 1,614; java: 465; pascal: 227; awk: 132
file content (172 lines) | stat: -rw-r--r-- 4,339 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: route_guide.proto

namespace Routeguide;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A RouteSummary is received in response to a RecordRoute rpc.
 * It contains the number of individual points received, the number of
 * detected features, and the total distance covered as the cumulative sum of
 * the distance between each point.
 *
 * Generated from protobuf message <code>routeguide.RouteSummary</code>
 */
class RouteSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of points received.
     *
     * Generated from protobuf field <code>int32 point_count = 1;</code>
     */
    protected $point_count = 0;
    /**
     * The number of known features passed while traversing the route.
     *
     * Generated from protobuf field <code>int32 feature_count = 2;</code>
     */
    protected $feature_count = 0;
    /**
     * The distance covered in metres.
     *
     * Generated from protobuf field <code>int32 distance = 3;</code>
     */
    protected $distance = 0;
    /**
     * The duration of the traversal in seconds.
     *
     * Generated from protobuf field <code>int32 elapsed_time = 4;</code>
     */
    protected $elapsed_time = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $point_count
     *           The number of points received.
     *     @type int $feature_count
     *           The number of known features passed while traversing the route.
     *     @type int $distance
     *           The distance covered in metres.
     *     @type int $elapsed_time
     *           The duration of the traversal in seconds.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\RouteGuide::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of points received.
     *
     * Generated from protobuf field <code>int32 point_count = 1;</code>
     * @return int
     */
    public function getPointCount()
    {
        return $this->point_count;
    }

    /**
     * The number of points received.
     *
     * Generated from protobuf field <code>int32 point_count = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPointCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->point_count = $var;

        return $this;
    }

    /**
     * The number of known features passed while traversing the route.
     *
     * Generated from protobuf field <code>int32 feature_count = 2;</code>
     * @return int
     */
    public function getFeatureCount()
    {
        return $this->feature_count;
    }

    /**
     * The number of known features passed while traversing the route.
     *
     * Generated from protobuf field <code>int32 feature_count = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFeatureCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->feature_count = $var;

        return $this;
    }

    /**
     * The distance covered in metres.
     *
     * Generated from protobuf field <code>int32 distance = 3;</code>
     * @return int
     */
    public function getDistance()
    {
        return $this->distance;
    }

    /**
     * The distance covered in metres.
     *
     * Generated from protobuf field <code>int32 distance = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setDistance($var)
    {
        GPBUtil::checkInt32($var);
        $this->distance = $var;

        return $this;
    }

    /**
     * The duration of the traversal in seconds.
     *
     * Generated from protobuf field <code>int32 elapsed_time = 4;</code>
     * @return int
     */
    public function getElapsedTime()
    {
        return $this->elapsed_time;
    }

    /**
     * The duration of the traversal in seconds.
     *
     * Generated from protobuf field <code>int32 elapsed_time = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setElapsedTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->elapsed_time = $var;

        return $this;
    }

}