예제 #1
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof SendDataResponse)) return false;
   SendDataResponse o = (SendDataResponse) other;
   return equals(unknownFields(), o.unknownFields()) && equals(data, o.data);
 }
예제 #2
0
 @Override
 public void encode(ProtoWriter writer, SendDataResponse value) throws IOException {
   if (value.data != null) ProtoAdapter.BYTES.encodeWithTag(writer, 1, value.data);
   writer.writeBytes(value.unknownFields());
 }
예제 #3
0
 @Override
 public SendDataResponse redact(SendDataResponse value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }
예제 #4
0
 @Override
 public int encodedSize(SendDataResponse value) {
   return (value.data != null ? ProtoAdapter.BYTES.encodedSizeWithTag(1, value.data) : 0)
       + value.unknownFields().size();
 }