Esempio n. 1
0
File: C.java Progetto: crazybob/wire
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof C)) return false;
   C o = (C) other;
   return Internal.equals(unknownFields(), o.unknownFields()) && Internal.equals(i, o.i);
 }
Esempio n. 2
0
File: C.java Progetto: crazybob/wire
 @Override
 public void encode(ProtoWriter writer, C value) throws IOException {
   if (value.i != null) ProtoAdapter.INT32.encodeWithTag(writer, 1, value.i);
   writer.writeBytes(value.unknownFields());
 }
Esempio n. 3
0
File: C.java Progetto: crazybob/wire
 @Override
 public int encodedSize(C value) {
   return (value.i != null ? ProtoAdapter.INT32.encodedSizeWithTag(1, value.i) : 0)
       + value.unknownFields().size();
 }
Esempio n. 4
0
File: C.java Progetto: crazybob/wire
 @Override
 public C redact(C value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }