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

Breadcrumb

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

function FileDescriptorProto::setSyntax

The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".

Generated from protobuf field <code>optional string syntax = 12;</code>

Parameters

string $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorProto.php, line 488

Class

FileDescriptorProto
Describes a complete .proto file.

Namespace

Google\Protobuf\Internal

Code

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

API Navigation

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