google.api.OAuthRequirements */ class OAuthRequirements extends \Google\Protobuf\Internal\Message { /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; */ private $canonical_scopes = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $canonical_scopes * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; * @return string */ public function getCanonicalScopes() { return $this->canonical_scopes; } /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; * @param string $var * @return $this */ public function setCanonicalScopes($var) { GPBUtil::checkString($var, True); $this->canonical_scopes = $var; return $this; } }