1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18class Google_Service_Dfareporting_UserRole extends Google_Collection
19{
20  protected $collection_key = 'permissions';
21  public $accountId;
22  public $defaultUserRole;
23  public $id;
24  public $kind;
25  public $name;
26  public $parentUserRoleId;
27  protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission';
28  protected $permissionsDataType = 'array';
29  public $subaccountId;
30
31  public function setAccountId($accountId)
32  {
33    $this->accountId = $accountId;
34  }
35  public function getAccountId()
36  {
37    return $this->accountId;
38  }
39  public function setDefaultUserRole($defaultUserRole)
40  {
41    $this->defaultUserRole = $defaultUserRole;
42  }
43  public function getDefaultUserRole()
44  {
45    return $this->defaultUserRole;
46  }
47  public function setId($id)
48  {
49    $this->id = $id;
50  }
51  public function getId()
52  {
53    return $this->id;
54  }
55  public function setKind($kind)
56  {
57    $this->kind = $kind;
58  }
59  public function getKind()
60  {
61    return $this->kind;
62  }
63  public function setName($name)
64  {
65    $this->name = $name;
66  }
67  public function getName()
68  {
69    return $this->name;
70  }
71  public function setParentUserRoleId($parentUserRoleId)
72  {
73    $this->parentUserRoleId = $parentUserRoleId;
74  }
75  public function getParentUserRoleId()
76  {
77    return $this->parentUserRoleId;
78  }
79  /**
80   * @param Google_Service_Dfareporting_UserRolePermission[]
81   */
82  public function setPermissions($permissions)
83  {
84    $this->permissions = $permissions;
85  }
86  /**
87   * @return Google_Service_Dfareporting_UserRolePermission[]
88   */
89  public function getPermissions()
90  {
91    return $this->permissions;
92  }
93  public function setSubaccountId($subaccountId)
94  {
95    $this->subaccountId = $subaccountId;
96  }
97  public function getSubaccountId()
98  {
99    return $this->subaccountId;
100  }
101}
102