Protobuf: Why IsInitialized() api always return true in proto3?

Created on 23 Mar 2017  路  2Comments  路  Source: protocolbuffers/protobuf

Even though using default constructor.

question

Most helpful comment

IsInitialized() tests whether all required fields are set. proto3 does not have required fields, so it will always return true.

All 2 comments

IsInitialized() tests whether all required fields are set. proto3 does not have required fields, so it will always return true.

Thanks @haberman very much

Was this page helpful?
0 / 5 - 0 ratings