<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto

namespace Google\Cloud\BigQuery\DataTransfer\V1\DataSource;

/**
 * The type of authorization needed for this data source.
 *
 * Protobuf type <code>google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType</code>
 */
class AuthorizationType
{
    /**
     * Type unspecified.
     *
     * Generated from protobuf enum <code>AUTHORIZATION_TYPE_UNSPECIFIED = 0;</code>
     */
    const AUTHORIZATION_TYPE_UNSPECIFIED = 0;
    /**
     * Use OAuth 2 authorization codes that can be exchanged
     * for a refresh token on the backend.
     *
     * Generated from protobuf enum <code>AUTHORIZATION_CODE = 1;</code>
     */
    const AUTHORIZATION_CODE = 1;
    /**
     * Return an authorization code for a given Google+ page that can then be
     * exchanged for a refresh token on the backend.
     *
     * Generated from protobuf enum <code>GOOGLE_PLUS_AUTHORIZATION_CODE = 2;</code>
     */
    const GOOGLE_PLUS_AUTHORIZATION_CODE = 2;
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizationType::class, \Google\Cloud\BigQuery\DataTransfer\V1\DataSource_AuthorizationType::class);

