Beispiel #1
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof A)) return false;
   A o = (A) other;
   return equals(unknownFields(), o.unknownFields()) && equals(c, o.c) && equals(d, o.d);
 }
Beispiel #2
0
 @Override
 public void encode(ProtoWriter writer, A value) throws IOException {
   if (value.c != null) B.ADAPTER.encodeWithTag(writer, 1, value.c);
   if (value.d != null) D.ADAPTER.encodeWithTag(writer, 2, value.d);
   writer.writeBytes(value.unknownFields());
 }
Beispiel #3
0
 @Override
 public int encodedSize(A value) {
   return (value.c != null ? B.ADAPTER.encodedSizeWithTag(1, value.c) : 0)
       + (value.d != null ? D.ADAPTER.encodedSizeWithTag(2, value.d) : 0)
       + value.unknownFields().size();
 }