@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); }
@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()); }
@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(); }