@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getProducerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producer_); } if (first_ != false) { output.writeBool(3, first_); } if (last_ != false) { output.writeBool(4, last_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getProducerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producer_); } if (first_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, first_); } if (last_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, last_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }