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