diff options
Diffstat (limited to 'php/src/Google/Protobuf/Internal/FieldOptions')
-rw-r--r-- | php/src/Google/Protobuf/Internal/FieldOptions/CType.php | 30 | ||||
-rw-r--r-- | php/src/Google/Protobuf/Internal/FieldOptions/JSType.php | 34 |
2 files changed, 64 insertions, 0 deletions
diff --git a/php/src/Google/Protobuf/Internal/FieldOptions/CType.php b/php/src/Google/Protobuf/Internal/FieldOptions/CType.php new file mode 100644 index 00000000..016197ac --- /dev/null +++ b/php/src/Google/Protobuf/Internal/FieldOptions/CType.php @@ -0,0 +1,30 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/protobuf/descriptor.proto + +namespace Google\Protobuf\Internal\FieldOptions; + +/** + * Protobuf type <code>google.protobuf.FieldOptions.CType</code> + */ +class CType +{ + /** + * Default mode. + * + * Generated from protobuf enum <code>STRING = 0;</code> + */ + const STRING = 0; + /** + * Generated from protobuf enum <code>CORD = 1;</code> + */ + const CORD = 1; + /** + * Generated from protobuf enum <code>STRING_PIECE = 2;</code> + */ + const STRING_PIECE = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CType::class, \Google\Protobuf\Internal\FieldOptions_CType::class); + diff --git a/php/src/Google/Protobuf/Internal/FieldOptions/JSType.php b/php/src/Google/Protobuf/Internal/FieldOptions/JSType.php new file mode 100644 index 00000000..f7b78a1b --- /dev/null +++ b/php/src/Google/Protobuf/Internal/FieldOptions/JSType.php @@ -0,0 +1,34 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/protobuf/descriptor.proto + +namespace Google\Protobuf\Internal\FieldOptions; + +/** + * Protobuf type <code>google.protobuf.FieldOptions.JSType</code> + */ +class JSType +{ + /** + * Use the default type. + * + * Generated from protobuf enum <code>JS_NORMAL = 0;</code> + */ + const JS_NORMAL = 0; + /** + * Use JavaScript strings. + * + * Generated from protobuf enum <code>JS_STRING = 1;</code> + */ + const JS_STRING = 1; + /** + * Use JavaScript numbers. + * + * Generated from protobuf enum <code>JS_NUMBER = 2;</code> + */ + const JS_NUMBER = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(JSType::class, \Google\Protobuf\Internal\FieldOptions_JSType::class); + |