proto library Client - Class Syntax (v5.36.2)

Reference documentation and code samples for the proto library Client class Syntax.

The syntax in which a protocol buffer element is defined.

Protobuf type google.protobuf.Syntax

Namespace

Google \ Protobuf

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

SYNTAX_PROTO2

Value: 0

Syntax proto2.

Generated from protobuf enum SYNTAX_PROTO2 = 0;

SYNTAX_PROTO3

Value: 1

Syntax proto3.

Generated from protobuf enum SYNTAX_PROTO3 = 1;

SYNTAX_EDITIONS

Value: 2

Syntax editions.

Generated from protobuf enum SYNTAX_EDITIONS = 2;