| 708 | struct Injector |
| 709 | { |
| 710 | void operator()( |
| 711 | Resource& resource, const Resource::AllocationInfo& allocationInfo) |
| 712 | { |
| 713 | if (!resource.has_allocation_info()) { |
| 714 | resource.mutable_allocation_info()->CopyFrom(allocationInfo); |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | void operator()( |
| 719 | RepeatedPtrField<Resource>* resources, |