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