| 258 | // necessary. Supported types for the proto: Example, Features. |
| 259 | template <typename ProtoType> |
| 260 | Feature* GetFeature(const string& key, ProtoType* proto) { |
| 261 | return &(*GetFeatures(proto)->mutable_feature())[key]; |
| 262 | } |
| 263 | |
| 264 | // Returns a repeated field with features corresponding to a feature_list key. |
| 265 | const protobuf::RepeatedPtrField<Feature>& GetFeatureList( |
no outgoing calls