Debian Codegraph @

php/src/Google/Protobuf/GPBEmpty.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/empty.proto
4
5 namespace Google\Protobuf;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * A generic empty message that you can re-use to avoid defining duplicated
13 * empty messages in your APIs. A typical example is to use it as the request
14 * or the response type of an API method. For instance:
15 * service Foo {
16 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
17 * }
18 *
19 * Generated from protobuf message <code>google.protobuf.Empty</code>
20 */
21 class GPBEmpty extends \Google\Protobuf\Internal\Message
22 {
23
24 /**
25 * Constructor.
26 *
27 * @param array $data {
28 * Optional. Data for populating the Message object.
29 *
30 * }
31 */
32 public function __construct($data = NULL) {
33 \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce();
34 parent::__construct($data);
35 }
36
37 }
38