protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

GPBExtensionDescriptor

Open liya0412 opened this issue 7 years ago • 4 comments

如何生成这个子类的实例化对象

liya0412 avatar Apr 01 '19 08:04 liya0412

setExtension:(GPBExtensionDescriptor *)extension value:(id)value

liya0412 avatar Apr 01 '19 08:04 liya0412

这个GPBExtensionDescriptor 不知道如何创建

liya0412 avatar Apr 01 '19 08:04 liya0412

You don't create instances of GPBExtensionDescriptor yourself; instead if your .proto file declares extensions, the generated ObjC code will include methods to get the GPBExtensionDescriptor instance for that extension field, and you then use that to get/set the values on a Message object.

thomasvl avatar Apr 01 '19 16:04 thomasvl

You don't create instances of GPBExtensionDescriptor yourself; instead if your .proto file declares extensions, the generated ObjC code will include methods to get the GPBExtensionDescriptor instance for that extension field, and you then use that to get/set the values on a Message object.

Thank you. Problem solved

liya0412 avatar Apr 09 '19 09:04 liya0412