message Word{
int32 id = 1;
string t1 = 2;
string t2 = 3;
bytes s1 = 4;
repeated WordSample ws= 5;
}
message WordSample{
int32 id_word = 1;
string t1 = 2;
string t2 = 3;
bytes s1 = 4;
}
var k=Word.newBuilder()
k.id=1
k.t1="t1"
k.t2="t2"
k.addWs(WordSample.getDefaultInstance())
k.addWs(WordSample.getDefaultInstance())
k.addWs(WordSample.getDefaultInstance())
// k.build()
k.getWsBuilder(1).setT2("try to change")
// java.lang.NoSuchMethodError:
com.google.protobuf.Internal.checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
I need to create a Message with a repeated Message within, the question is
that I need to set some fields at a diferent moments, thus I have to acces the
inner message and set the field.
But it simply launches the above exception, it really looks like a bug, why
would you ever have getBuilder properties with a setter for if you can't set
anything ?????
latest protobuf in kotlin thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.