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

Breadcrumb

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

function FileDescriptorProto::getSyntax

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>

Return value

string

File

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

Class

FileDescriptorProto
Describes a complete .proto file.

Namespace

Google\Protobuf\Internal

Code

public function getSyntax() {
    return isset($this->syntax) ? $this->syntax : '';
}

API Navigation

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