Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/protobuf/php/src/Google/Protobuf/Internal/FileDescriptorSet.php

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/descriptor.proto
4
5 namespace Google\Protobuf\Internal;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\GPBWire;
9 use Google\Protobuf\Internal\RepeatedField;
10 use Google\Protobuf\Internal\InputStream;
11
12 use Google\Protobuf\Internal\GPBUtil;
13
14 /**
15 * <pre>
16 * The protocol compiler can output a FileDescriptorSet containing the .proto
17 * files it parses.
18 * </pre>
19 *
20 * Protobuf type <code>google.protobuf.FileDescriptorSet</code>
21 */
22 class FileDescriptorSet extends \Google\Protobuf\Internal\Message
23 {
24 /**
25 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
26 */
27 private $file;
28 private $has_file = false;
29
30 public function __construct() {
31 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
32 parent::__construct();
33 }
34
35 /**
36 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
37 */
38 public function getFile()
39 {
40 return $this->file;
41 }
42
43 /**
44 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
45 */
46 public function setFile(&$var)
47 {
48 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES SAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
49 $this->file = $var;
50 $this->has_file = true;
51 }
52
53 public function hasFile()
54 {
55 return $this->has_file;
56 }
57
58 }
59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698