Ejemplo n.º 1
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof More)) return false;
   More o = (More) other;
   return WireInternal.equals(unknownFields(), o.unknownFields())
       && WireInternal.equals(serial, o.serial);
 }
Ejemplo n.º 2
0
 @Override
 public void encode(ProtoWriter writer, More value) throws IOException {
   if (value.serial != null)
     ProtoAdapter.INT32.asRepeated().encodeWithTag(writer, 1, value.serial);
   writer.writeBytes(value.unknownFields());
 }
Ejemplo n.º 3
0
 @Override
 public int encodedSize(More value) {
   return ProtoAdapter.INT32.asRepeated().encodedSizeWithTag(1, value.serial)
       + value.unknownFields().size();
 }