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 by PathTemplate, an assignment to variables in the
template, and an optional endpoint. The ResourceName class 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-08-28 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003ecom.google.api.pathtemplate\u003c/code\u003e package is 2.46.1, while the current page's context is version 2.20.0, indicating the availability of several newer versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecom.google.api.pathtemplate\u003c/code\u003e package includes classes like \u003ccode\u003ePathTemplate\u003c/code\u003e, \u003ccode\u003eTemplatedResourceName\u003c/code\u003e, and \u003ccode\u003eValidationException\u003c/code\u003e, which are all related to managing path templates, resource names, and handling validation errors.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTemplatedResourceName.Resolver\u003c/code\u003e interface is available for custom resource name resolution, enabling external resolution logic to be registered and used.\u003c/p\u003e\n"],["\u003cp\u003eThe package provides comprehensive handling of path templates, resource names, and error management related to path template issues, through the class \u003ccode\u003eValidationException\u003c/code\u003e and its supplier interface.\u003c/p\u003e\n"],["\u003cp\u003eThe package is available on the linked GitHub repository for additional context and information.\u003c/p\u003e\n"]]],[],null,[]]