<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/products/v1/products_common.proto

namespace Google\Shopping\Merchant\Products\V1\ProductAttributes;

use UnexpectedValueException;

/**
 * The utilities included for the property.
 *
 * Protobuf type <code>google.shopping.merchant.products.v1.ProductAttributes.UtilitiesIncluded</code>
 */
class UtilitiesIncluded
{
    /**
     * Unspecified utilities included.
     *
     * Generated from protobuf enum <code>UTILITIES_INCLUDED_UNSPECIFIED = 0;</code>
     */
    const UTILITIES_INCLUDED_UNSPECIFIED = 0;
    /**
     * Electricity.
     *
     * Generated from protobuf enum <code>ELECTRICITY = 1;</code>
     */
    const ELECTRICITY = 1;
    /**
     * Gas.
     *
     * Generated from protobuf enum <code>GAS = 2;</code>
     */
    const GAS = 2;
    /**
     * Internet.
     *
     * Generated from protobuf enum <code>INTERNET = 3;</code>
     */
    const INTERNET = 3;
    /**
     * Trash.
     *
     * Generated from protobuf enum <code>TRASH = 4;</code>
     */
    const TRASH = 4;
    /**
     * Water.
     *
     * Generated from protobuf enum <code>WATER = 5;</code>
     */
    const WATER = 5;

    private static $valueToName = [
        self::UTILITIES_INCLUDED_UNSPECIFIED => 'UTILITIES_INCLUDED_UNSPECIFIED',
        self::ELECTRICITY => 'ELECTRICITY',
        self::GAS => 'GAS',
        self::INTERNET => 'INTERNET',
        self::TRASH => 'TRASH',
        self::WATER => 'WATER',
    ];

    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);
    }
}

