Fails when tried to parse the given json string as follows
val myAddressBook = AddressBookProtos.AddressBook.parseFrom(SAMPLE_JSON.toByteArray())
Error
Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
I mean to ask if it is the correct way to parse it or do we need any change ?
Fails when tried to parse the given json string as follows
val myAddressBook = AddressBookProtos.AddressBook.parseFrom(SAMPLE_JSON.toByteArray())Error
Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.I mean to ask if it is the correct way to parse it or do we need any change ?