I wonder if there is any workaround for this issue: https://github.com/protobufjs/protobuf.js/issues/1171 Is there any way of getting rid of optionals in .ts code generated from gapic?