Exemple #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);
 }
Exemple #2
0
 @Override
 public A redact(A value) {
   Builder builder = value.newBuilder();
   if (builder.c != null) builder.c = B.ADAPTER.redact(builder.c);
   if (builder.d != null) builder.d = D.ADAPTER.redact(builder.d);
   builder.clearUnknownFields();
   return builder.build();
 }
Exemple #3
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());
 }
Exemple #4
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();
 }