1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table\IndexBuildState;
- use UnexpectedValueException;
- /**
- * Protobuf type <code>Ydb.Table.IndexBuildState.State</code>
- */
- class State
- {
- /**
- * Generated from protobuf enum <code>STATE_UNSPECIFIED = 0;</code>
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum <code>STATE_PREPARING = 1;</code>
- */
- const STATE_PREPARING = 1;
- /**
- * Generated from protobuf enum <code>STATE_TRANSFERING_DATA = 2;</code>
- */
- const STATE_TRANSFERING_DATA = 2;
- /**
- * Generated from protobuf enum <code>STATE_APPLYING = 3;</code>
- */
- const STATE_APPLYING = 3;
- /**
- * Generated from protobuf enum <code>STATE_DONE = 4;</code>
- */
- const STATE_DONE = 4;
- /**
- * Generated from protobuf enum <code>STATE_CANCELLATION = 5;</code>
- */
- const STATE_CANCELLATION = 5;
- /**
- * Generated from protobuf enum <code>STATE_CANCELLED = 6;</code>
- */
- const STATE_CANCELLED = 6;
- /**
- * Generated from protobuf enum <code>STATE_REJECTION = 7;</code>
- */
- const STATE_REJECTION = 7;
- /**
- * Generated from protobuf enum <code>STATE_REJECTED = 8;</code>
- */
- const STATE_REJECTED = 8;
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::STATE_PREPARING => 'STATE_PREPARING',
- self::STATE_TRANSFERING_DATA => 'STATE_TRANSFERING_DATA',
- self::STATE_APPLYING => 'STATE_APPLYING',
- self::STATE_DONE => 'STATE_DONE',
- self::STATE_CANCELLATION => 'STATE_CANCELLATION',
- self::STATE_CANCELLED => 'STATE_CANCELLED',
- self::STATE_REJECTION => 'STATE_REJECTION',
- self::STATE_REJECTED => 'STATE_REJECTED',
- ];
- 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(State::class, \Ydb\Table\IndexBuildState_State::class);
|