Class ReflectionFieldAccessor
- java.lang.Object
-
- com.google.ads.googleads.lib.reflect.ReflectionFieldAccessor
-
- All Implemented Interfaces:
FieldAccessor
- Direct Known Subclasses:
SearchResponseScrubber
public class ReflectionFieldAccessor extends java.lang.Object implements FieldAccessor
Sets values on a protobuf object based on a string representation of the path to the value.
-
-
Constructor Summary
Constructors Constructor Description ReflectionFieldAccessor(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.List<T>getValues(com.google.protobuf.Message input)com.google.protobuf.MessagesetFieldIfPresent(com.google.protobuf.Message input, java.lang.String toSet)
-
-
-
Method Detail
-
setFieldIfPresent
public com.google.protobuf.Message setFieldIfPresent(com.google.protobuf.Message input, java.lang.String toSet)- Specified by:
setFieldIfPresentin interfaceFieldAccessor
-
getValues
public <T> java.util.List<T> getValues(com.google.protobuf.Message input)
- Specified by:
getValuesin interfaceFieldAccessor
-
-