syntax = "proto3"; package test.originallysinglepattern; import "google/api/resource.proto"; message Book { option (google.api.resource) = { type: "test1.testdata/Book" singular: "book" plural: "books" pattern: "shelves/{shelf}/books/{book}" pattern: "publishers/{publisher}/books/{book}" history: ORIGINALLY_SINGLE_PATTERN }; // The resource name of the book. string name = 1; } // Shelf can be either top-level, within a library or within a room. message Shelf { option (google.api.resource) = { type: "test1.testdata/Shelf" singular: "shelf" plural: "shelves" pattern: "shelves/{shelf}" pattern: "libraries/{library}/shelves/{shelf}" pattern: "rooms/{room}/shelves/{shelf}" history: ORIGINALLY_SINGLE_PATTERN }; // The resource name. string name = 1; }