123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table\TableIndexDescription;
- use UnexpectedValueException;
- /**
- * Protobuf type <code>Ydb.Table.TableIndexDescription.Status</code>
- */
- class Status
- {
- /**
- * Generated from protobuf enum <code>STATUS_UNSPECIFIED = 0;</code>
- */
- const STATUS_UNSPECIFIED = 0;
- /**
- * Index is ready to use
- *
- * Generated from protobuf enum <code>STATUS_READY = 1;</code>
- */
- const STATUS_READY = 1;
- /**
- * index is being built
- *
- * Generated from protobuf enum <code>STATUS_BUILDING = 2;</code>
- */
- const STATUS_BUILDING = 2;
- private static $valueToName = [
- self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED',
- self::STATUS_READY => 'STATUS_READY',
- self::STATUS_BUILDING => 'STATUS_BUILDING',
- ];
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(Status::class, \Ydb\Table\TableIndexDescription_Status::class);
|