Enum Syntax (3.19.4)

publicenumSyntaxextendsEnum<Syntax>implementsInternal.EnumLite

The syntax in which a protocol buffer element is defined.

Protobuf enum google.protobuf.Syntax

Implements

Internal.EnumLite

Static Fields

Name Description
SYNTAX_PROTO2

Syntax proto2.

SYNTAX_PROTO2 = 0;

SYNTAX_PROTO2_VALUE

Syntax proto2.

SYNTAX_PROTO2 = 0;

SYNTAX_PROTO3

Syntax proto3.

SYNTAX_PROTO3 = 1;

SYNTAX_PROTO3_VALUE

Syntax proto3.

SYNTAX_PROTO3 = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
internalGetValueMap()
internalGetVerifier()
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getNumber()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.