Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SourceContext.php

function SourceContext::setFileName

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 <code>string file_name = 1;</code>

Parameters

string $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/SourceContext.php, line 63

Class

SourceContext
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.

Namespace

Google\Protobuf

Code

public function setFileName($var) {
    GPBUtil::checkString($var, True);
    $this->file_name = $var;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal