It's possible to create invalid google.protobuf.Value objects using Google's own Value constructor. Doing something like Value(struct_value=None) is allowed but it produces a wire representation that other protobuf libraries such as protojson reject. We need a way to prevent the users from creating these invalid values.
It's possible to create invalid
google.protobuf.Valueobjects using Google's ownValueconstructor. Doing something likeValue(struct_value=None)is allowed but it produces a wire representation that other protobuf libraries such asprotojsonreject. We need a way to prevent the users from creating these invalid values.