<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto

namespace Google\Cloud\CloudControlsPartner\V1beta\Workload;

use UnexpectedValueException;

/**
 * Supported Assured Workloads Partners.
 *
 * Protobuf type <code>google.cloud.cloudcontrolspartner.v1beta.Workload.Partner</code>
 */
class Partner
{
    /**
     * Unknown Partner.
     *
     * Generated from protobuf enum <code>PARTNER_UNSPECIFIED = 0;</code>
     */
    const PARTNER_UNSPECIFIED = 0;
    /**
     * Enum representing S3NS (Thales) partner.
     *
     * Generated from protobuf enum <code>PARTNER_LOCAL_CONTROLS_BY_S3NS = 1;</code>
     */
    const PARTNER_LOCAL_CONTROLS_BY_S3NS = 1;
    /**
     * Enum representing T_SYSTEM (TSI) partner.
     *
     * Generated from protobuf enum <code>PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2;</code>
     */
    const PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2;
    /**
     * Enum representing SIA_MINSAIT (Indra) partner.
     *
     * Generated from protobuf enum <code>PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3;</code>
     */
    const PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3;
    /**
     * Enum representing PSN (TIM) partner.
     *
     * Generated from protobuf enum <code>PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4;</code>
     */
    const PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4;
    /**
     * Enum representing CNTXT (Kingdom of Saudi Arabia) partner.
     *
     * Generated from protobuf enum <code>PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6;</code>
     */
    const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6;
    /**
     * Enum representing CNXT (Kingdom of Saudi Arabia) partner offering without
     * EKM provisioning.
     *
     * Generated from protobuf enum <code>PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7;</code>
     */
    const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7;

    private static $valueToName = [
        self::PARTNER_UNSPECIFIED => 'PARTNER_UNSPECIFIED',
        self::PARTNER_LOCAL_CONTROLS_BY_S3NS => 'PARTNER_LOCAL_CONTROLS_BY_S3NS',
        self::PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS => 'PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS',
        self::PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT => 'PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT',
        self::PARTNER_SOVEREIGN_CONTROLS_BY_PSN => 'PARTNER_SOVEREIGN_CONTROLS_BY_PSN',
        self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT',
        self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM',
    ];

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

