Replies: 7 comments
-
|
Hi @srpn, |
Beta Was this translation helpful? Give feedback.
-
|
Moreover, you should annotate the class |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the response @fax4ever, |
Beta Was this translation helpful? Give feedback.
-
|
What would be the Protocol Buffers schema you would like to generate for this case? |
Beta Was this translation helpful? Give feedback.
-
|
I am looking to use Infinispan for a distributed cache and I am new to Protocol Buffers. Here is a full example for ease of reproducing |
Beta Was this translation helpful? Give feedback.
-
|
Yes! One-of seems to be the proper way to map the polymorphism. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a
@ProtoAdapterfor a third party class and I couldn't find examples for usage with inheritance.Lets say there is a class called
CachedAnimalthat contains anAnimalandCacheDuration.However, this fails to compile with
@AutoProtoSchemaBuildersaying the@ProtoFieldtype "should not be abstract".Please provide details on how to deal with abstract types and add some examples to the documentation.
Beta Was this translation helpful? Give feedback.
All reactions