Templates use the syntax of the API platform; see the protobuf of HttpRule for details. A
template consists of a sequence of literals, wildcards, and variable bindings, where each binding
Class for representing and working with resource names.
A resource name is represented byPathTemplate, an assignment to variables in the
template, and an optional endpoint. TheResourceNameclass implements the map interface
Exception thrown if there is a validation problem with a path template, http config, or related
framework methods. Comes as an illegal argument exception subclass. Allows to globally set a
thread-local validation context description which each exception inherits.
[[["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\u003ecom.google.api.pathtemplate\u003c/code\u003e package, version 2.40.0.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 2.46.1, and a comprehensive list of previous versions, dating back to 2.1.2, is accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe package includes the \u003ccode\u003ePathTemplate\u003c/code\u003e and \u003ccode\u003eTemplatedResourceName\u003c/code\u003e classes, which are used for working with path templates and resource names.\u003c/p\u003e\n"],["\u003cp\u003eIt also contains \u003ccode\u003eResolver\u003c/code\u003e and \u003ccode\u003eSupplier\u003c/code\u003e interfaces, and the \u003ccode\u003eValidationException\u003c/code\u003e exception class for handling validation issues.\u003c/p\u003e\n"],["\u003cp\u003eThe source code for this package is available on the GitHub repository located at \u003ccode\u003ehttps://github.com/googleapis/sdk-platform-java/tree/main/api-common-java/api-common/src/main/java/com/google/api/pathtemplate\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]