google.protobuf.SourceContext
*/
class SourceContext extends \Google\Protobuf\Internal\Message
{
/**
* The path-qualified name of the .proto file that contained the associated
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
*
* Generated from protobuf field string file_name = 1;
*/
private $file_name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $file_name
* The path-qualified name of the .proto file that contained the associated
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Protobuf\SourceContext::initOnce();
parent::__construct($data);
}
/**
* The path-qualified name of the .proto file that contained the associated
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
*
* Generated from protobuf field string file_name = 1;
* @return string
*/
public function getFileName()
{
return $this->file_name;
}
/**
* The path-qualified name of the .proto file that contained the associated
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
*
* Generated from protobuf field string file_name = 1;
* @param string $var
* @return $this
*/
public function setFileName($var)
{
GPBUtil::checkString($var, True);
$this->file_name = $var;
return $this;
}
}