Add an entry to paramsBuilder with key-value pairing of (headerKey, fieldValue). The only
validation done is to ensure the headerKey and fieldValue are not null and non-empty. This
method is used for implicit routing headers (backwards compatibility).
Add an entry to paramsBuilder by match-and-extract field values from requests based on
pre-configured path templates. This method is called repeatedly for each configured routing
rule parameter, it's possible that the incoming field value from request is null or there is no
matches found, we'll continue the match-and-extract process for the next routing rule parameter
in such case.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eRequestParamsBuilder\u003c/code\u003e class, which is used to create a map of request parameters for routing headers in Google API client libraries for Java.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRequestParamsBuilder\u003c/code\u003e is currently in a pre-General Availability (pre-GA) stage, so its API might change and it may have limited support.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists multiple versions of the library, with version 2.63.1 being the latest available version and 2.54.1 being the currently viewed version.\u003c/p\u003e\n"],["\u003cp\u003eThe builder can add key-value pairs to the parameters map, either directly with \u003ccode\u003eadd(String headerKey, String fieldValue)\u003c/code\u003e or by extracting values from request fields using \u003ccode\u003eadd(String fieldValue, String headerKey, PathTemplate pathTemplate)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRequestParamsBuilder\u003c/code\u003e has a \u003ccode\u003ebuild()\u003c/code\u003e method, which returns a map containing the built request parameters, which can then be used by \u003ccode\u003eRequestParamsExtractor\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]