...

Text file src/go.einride.tech/aip/cmd/protoc-gen-go-aip/internal/genaip/testdata/test/originallysinglepattern/testdata.proto

Documentation: go.einride.tech/aip/cmd/protoc-gen-go-aip/internal/genaip/testdata/test/originallysinglepattern

     1syntax = "proto3";
     2
     3package test.originallysinglepattern;
     4
     5import "google/api/resource.proto";
     6
     7message Book {
     8  option (google.api.resource) = {
     9    type: "test1.testdata/Book"
    10    singular: "book"
    11    plural: "books"
    12    pattern: "shelves/{shelf}/books/{book}"
    13    pattern: "publishers/{publisher}/books/{book}"
    14    history: ORIGINALLY_SINGLE_PATTERN
    15  };
    16
    17  // The resource name of the book.
    18  string name = 1;
    19}
    20
    21// Shelf can be either top-level, within a library or within a room.
    22message Shelf {
    23  option (google.api.resource) = {
    24    type: "test1.testdata/Shelf"
    25    singular: "shelf"
    26    plural: "shelves"
    27    pattern: "shelves/{shelf}"
    28    pattern: "libraries/{library}/shelves/{shelf}"
    29    pattern: "rooms/{room}/shelves/{shelf}"
    30    history: ORIGINALLY_SINGLE_PATTERN
    31  };
    32
    33  // The resource name.
    34  string name = 1;
    35}

View as plain text