GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — feat: file_level and indirectly used resources generate helper methods by software-dov · Pull Request #642 · googleapis/gapic-generator-python
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Conversation
Contributor
File level resources are defined as options for the proto file, not E.g. message Squid { option (google.api.resource) = { type: "animalia.mollusca.com/Squid" pattern: "zones/{zone}/squids/{squid}" }; } message CreateSquidRequest{ string name = 1 [ (google.api.resource_reference) = { type: "animalia.mollusca.com/Squid" } ]; } message CreateSquidResponse{} Both file level and indirectly used resources generate helper methods Closes #637
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsFile level resources are defined as options for the proto file, not
for a message type.
Indirectly used resources are resources backed by a message type, but
the message type is not a field type referenced by a service.
E.g.
message Squid {
option (google.api.resource) = {
type: "animalia.mollusca.com/Squid"
pattern: "zones/{zone}/squids/{squid}"
};
}
message CreateSquidRequest{
string name = 1 [
(google.api.resource_reference) = {
type: "animalia.mollusca.com/Squid"
}
];
}
message CreateSquidResponse{}
Both file level and indirectly used resources generate helper methods
in service clients that need them.
Closes googleapis#637
software-dov
requested review from
a team,
busunkim96,
crwilcox,
lukesneeringer and
vchudnov-g
software-dov
force-pushed
the
file-level-resources
branch
from
f00d2f4 to
f88fc4c
Compare
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #642 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 26 26 Lines 1538 1562 +24 Branches 310 316 +6 ========================================= + Hits 1538 1562 +24
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Resources referenced by name but not used directly generate helper methods
There was an error while loading. Please reload this page.