api-client-staging icon indicating copy to clipboard operation
api-client-staging copied to clipboard

Java: generating nonfunctional compute client

Open garrettjonesgoogle opened this issue 7 years ago • 3 comments

This isn't for review exactly, it's more to look at for amusement.

garrettjonesgoogle avatar Apr 06 '17 23:04 garrettjonesgoogle

@garrettjonesgoogle How did you create this? Is everything in google-cloud-compute-v1/src/main/java/com/google/cloud/compute/spi/v1 hand-written using an existing GAPIC template, and then everything else generated with protoc from the proto2 files?

bjwatson avatar Apr 07 '17 16:04 bjwatson

@bjwatson I hand-converted the proto 2 file for InstancesService to proto 3 (and put that in compute_instances.proto), hand-converted the service yaml, used the gapic config generator to create the gapic yaml, then generated the client.

garrettjonesgoogle avatar Apr 07 '17 16:04 garrettjonesgoogle

Ok, that makes sense.

bjwatson avatar Apr 07 '17 17:04 bjwatson