| 142 | namespace { |
| 143 | |
| 144 | QuotaInfo createQuotaInfo( |
| 145 | const string& role, |
| 146 | const RepeatedPtrField<Resource>& guarantee) |
| 147 | { |
| 148 | QuotaInfo quota; |
| 149 | |
| 150 | quota.set_role(role); |
| 151 | quota.mutable_guarantee()->CopyFrom(guarantee); |
| 152 | |
| 153 | return quota; |
| 154 | } |
| 155 | |
| 156 | } // namespace { |
| 157 |