我是协议缓冲区的新手。我有一些 java pojo 类,它有一个 Date 类型的字段,仅包括年、月和日。
对于时间戳类型,我们可以import "google/protobuf/timestamp.proto";。
但对于 Date 类型,我们不能这样做,因为 date.proto 位于https://github.com/googleapis/googleapis/blob/master/google/type/date.proto.
那么我该如何导入这个date.proto呢?
我在 vscode 中使用 flake8 作为 python linter。我希望 flake8 忽略所有警告,但error-only在搜索 flake8 文档后找不到任何检测选项。那么,我怎样才能做到这一点?有什么帮助吗?