Package com.google.api.gax.rpc
Interface RequestParamsExtractor<RequestT>
-
- Type Parameters:
RequestT- request message type
@InternalApi("For use by transport-specific implementations") public interface RequestParamsExtractor<RequestT>A request params extractor takes arequestmessage, extracts specific field values from it, converts them in strings and returns them as key-value pairs, where a key is a request field name and a value is a string representation of a field value. Nested fields should also be extractable, in such case the "dot notation" can be used to represent a nested field name, for example"field_name.nested_field_name".Implementations of this interface are expected to be autogenerated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>extract(RequestT request)Extracts specific fields from therequestand returns them in a form of key-value pairs, where a key is a field name and a value is a field's string representation.
-
-
-
Method Detail
-
extract
java.util.Map<java.lang.String,java.lang.String> extract(RequestT request)
Extracts specific fields from therequestand returns them in a form of key-value pairs, where a key is a field name and a value is a field's string representation. To represent nested field names the "dot notation" can be used.- Parameters:
request- request message
-
-