...

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

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

     1syntax = "proto3";
     2
     3package test.single;
     4
     5import "google/api/resource.proto";
     6
     7message Shelf {
     8  option (google.api.resource) = {
     9    type: "test1.testdata/Shelf"
    10    singular: "shelf"
    11    plural: "shelves"
    12    pattern: "shelves/{shelf}"
    13  };
    14
    15  // The resource name of the shelf.
    16  string name = 1;
    17}
    18
    19message Book {
    20  option (google.api.resource) = {
    21    type: "test1.testdata/Book"
    22    singular: "book"
    23    plural: "books"
    24    pattern: "shelves/{shelf}/books/{book}"
    25  };
    26
    27  // The resource name of the book.
    28  string name = 1;
    29}

View as plain text