message MyMessage {
map<int32, int32> weight = 1;
}
The generated code ignores the field and I end up with an "empty" Schema class, i.e.
public void mergeFrom(Input input, com.me.MyMessage message, int fieldIx) throws IOException {
switch (fieldIx) {
case FIELD_NONE:
return;
default:
input.handleUnknownField(fieldIx, this);
}
}What am I missing?
Hi All,I am looking to use a map and it appears in the Protostuff doc's this should be possible
However when I have:
message MyMessage {
map<int32, int32> weight = 1;
}The generated code ignores the field and I end up with an "empty" Schema class, i.e.
public void mergeFrom(Input input, com.me.MyMessage message, int fieldIx) throws IOException {
switch (fieldIx) {
case FIELD_NONE:
return;
default:
input.handleUnknownField(fieldIx, this);
}
}What am I missing?
--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Map<Integer, Integer> getWeightMap()
: Returns an unmodifiable Map
.Integer getWeight(Integer key)
: Returns a value mapped to given key if it exists. If mapping does not exist than returns null
.On Sat, Aug 5, 2017 at 9:45 AM, James Cook <cooki...@gmail.com> wrote:Hi All,I am looking to use a map and it appears in the Protostuff doc's this should be possibleMake sure you're using https://github.com/protostuff/protostuff-compiler
However when I have:
message MyMessage {
map<int32, int32> weight = 1;
}The generated code ignores the field and I end up with an "empty" Schema class, i.e.
public void mergeFrom(Input input, com.me.MyMessage message, int fieldIx) throws IOException {
switch (fieldIx) {
case FIELD_NONE:
return;
default:
input.handleUnknownField(fieldIx, this);
}
}What am I missing?
--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Sat, Aug 5, 2017 at 9:45 AM, James Cook <cooki...@gmail.com> wrote:Hi All,I am looking to use a map and it appears in the Protostuff doc's this should be possibleMake sure you're using https://github.com/protostuff/protostuff-compiler
However when I have:
message MyMessage {
map<int32, int32> weight = 1;
}The generated code ignores the field and I end up with an "empty" Schema class, i.e.
public void mergeFrom(Input input, com.me.MyMessage message, int fieldIx) throws IOException {
switch (fieldIx) {
case FIELD_NONE:
return;
default:
input.handleUnknownField(fieldIx, this);
}
}What am I missing?
--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I checked out that other repo.There are appears to be multiple compilers here.One in the Protostuff/protostuff repo and another in the repo you linked.Why is there two? What is the correct one to use?
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+unsubscribe@googlegroups.com.
So what is the compiler that is in the protostuff/protostuff repository?
Should I not be using that one at all?