1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: google/protobuf/source_context.proto 4 5namespace Google\Protobuf; 6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 11/** 12 * `SourceContext` represents information about the source of a 13 * protobuf element, like the file in which it is defined. 14 * 15 * Generated from protobuf message <code>google.protobuf.SourceContext</code> 16 */ 17class SourceContext extends \Google\Protobuf\Internal\Message 18{ 19 /** 20 * The path-qualified name of the .proto file that contained the associated 21 * protobuf element. For example: `"google/protobuf/source_context.proto"`. 22 * 23 * Generated from protobuf field <code>string file_name = 1;</code> 24 */ 25 private $file_name = ''; 26 27 /** 28 * Constructor. 29 * 30 * @param array $data { 31 * Optional. Data for populating the Message object. 32 * 33 * @type string $file_name 34 * The path-qualified name of the .proto file that contained the associated 35 * protobuf element. For example: `"google/protobuf/source_context.proto"`. 36 * } 37 */ 38 public function __construct($data = NULL) { 39 \GPBMetadata\Google\Protobuf\SourceContext::initOnce(); 40 parent::__construct($data); 41 } 42 43 /** 44 * The path-qualified name of the .proto file that contained the associated 45 * protobuf element. For example: `"google/protobuf/source_context.proto"`. 46 * 47 * Generated from protobuf field <code>string file_name = 1;</code> 48 * @return string 49 */ 50 public function getFileName() 51 { 52 return $this->file_name; 53 } 54 55 /** 56 * The path-qualified name of the .proto file that contained the associated 57 * protobuf element. For example: `"google/protobuf/source_context.proto"`. 58 * 59 * Generated from protobuf field <code>string file_name = 1;</code> 60 * @param string $var 61 * @return $this 62 */ 63 public function setFileName($var) 64 { 65 GPBUtil::checkString($var, True); 66 $this->file_name = $var; 67 68 return $this; 69 } 70 71} 72 73