avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame^] | 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 | * The JSON representation for `Empty` is empty JSON object `{}`. |
| 19 | * |
| 20 | * Generated from protobuf message <code>google.protobuf.Empty</code> |
| 21 | */ |
| 22 | class GPBEmpty extends \Google\Protobuf\Internal\Message |
| 23 | { |
| 24 | |
| 25 | /** |
| 26 | * Constructor. |
| 27 | * |
| 28 | * @param array $data { |
| 29 | * Optional. Data for populating the Message object. |
| 30 | * |
| 31 | * } |
| 32 | */ |
| 33 | public function __construct($data = NULL) { |
| 34 | \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); |
| 35 | parent::__construct($data); |
| 36 | } |
| 37 | |
| 38 | } |
| 39 | |