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\u003eThe latest version available is 2.46.1, as indicated in the provided list of versions for the \u003ccode\u003ecom.google.api.pathtemplate\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecom.google.api.pathtemplate\u003c/code\u003e package, version 2.34.0, includes classes such as \u003ccode\u003ePathTemplate\u003c/code\u003e and \u003ccode\u003eTemplatedResourceName\u003c/code\u003e for working with resource paths and templates.\u003c/p\u003e\n"],["\u003cp\u003eThe package provides a \u003ccode\u003eTemplatedResourceName.Resolver\u003c/code\u003e interface for registering resource name resolvers and a \u003ccode\u003eValidationException.Supplier\u003c/code\u003e interface for defining validation exceptions.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eValidationException\u003c/code\u003e is available to be thrown when validation issues occur with path templates, HTTP configurations, or related framework operations, and it can be subclassed from the illegal argument exception.\u003c/p\u003e\n"],["\u003cp\u003eThe package is hosted in a GitHub repository, which can be found 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,[]]